Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed ManufacturingCenter gui handler bug #778

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList)

@Override
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) {
if (BlockBreakDropTable.containsKey(metadata)) {
return Arrays.stream(BlockBreakDropTable.get(metadata))
.map(item -> item.get(1))
.collect(Collectors.toCollection(ArrayList::new));
if (!world.getClass()
.getSimpleName()
.equals("TrackedDummyWorld")) {
if (BlockBreakDropTable.containsKey(metadata)) {
return Arrays.stream(BlockBreakDropTable.get(metadata))
.map(item -> item.get(1))
.collect(Collectors.toCollection(ArrayList::new));
}
}
return super.getDrops(world, x, y, z, metadata, fortune);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/gtnhcommunitymod/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1908,3 +1908,4 @@ TST_ProcessingArray.tooltips.04=Do general overclock
TST_ProcessingArray.tooltips.05=Centrifuge, Electrolyzer, Mixer do their multiblock machine recipe
Machine_of_TwistSpaceTechnology=§l§9Twist §bSpace §eTechnology§r is honored to serve you
NameProcessingArray=TST Processing Array
ManufacturingCenter_Tooltips_MachineType=Manufacturing Center | Nine in One
1 change: 1 addition & 0 deletions src/main/resources/assets/gtnhcommunitymod/lang/zh_CN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1908,3 +1908,4 @@ TST_ProcessingArray.tooltips.04=执行有损超频
TST_ProcessingArray.tooltips.05=离心机,电解机,搅拌机执行其对应多方块机器配方
Machine_of_TwistSpaceTechnology=§l§9Twist §bSpace §eTechnology§r 很荣幸为您服务!
NameProcessingArray=TST处理阵列
ManufacturingCenter_Tooltips_MachineType=加工中心 | 九合一