Skip to content

Commit e986c65

Browse files
cleanup
1 parent b7cc62d commit e986c65

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/main/java/com/recursive_pineapple/matter_manipulator/common/building/AbstractBuildable.java

+3-7
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,9 @@ public AbstractBuildable(EntityPlayer player, MMState state, ManipulatorTier tie
8282
public boolean tryConsumePower(ItemStack stack, World world, int x, int y, int z, ImmutableBlockSpec spec) {
8383
double euUsage = EU_PER_BLOCK * spec.getBlock().getBlockHardness(world, x, y, z);
8484

85-
try {
86-
Block block = spec.getBlock();
87-
if (block.hasTileEntity(spec.getBlockMeta())) {
88-
euUsage *= TE_PENALTY;
89-
}
90-
} catch (Throwable e) {
91-
MMMod.LOG.error("Could not get Block.isBlockContainer field", e);
85+
Block block = spec.getBlock();
86+
if (block.hasTileEntity(spec.getBlockMeta())) {
87+
euUsage *= TE_PENALTY;
9288
}
9389

9490
return tryConsumePower(stack, x, y, z, euUsage);

src/main/resources/META-INF/mm_at.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
public net.minecraft.nbt.NBTTagList field_74747_a # tagList
22
public net.minecraft.nbt.NBTTagCompound field_74784_a # tagMap
33

4-
public net.minecraft.block.Block field_149758_A # isBlockContainer
54
public net.minecraft.item.ItemReed field_150935_a # the block this fancy item places
65
public net.minecraft.block.BlockSlab field_150004_a # whether the slab is a full block
76

0 commit comments

Comments
 (0)