Initial update to Minecraft 1.12

This commit is contained in:
mezz committed 2017-06-24 21:49:47 -07:00
1 parent d3c7280f3f
commit 7306764c51
328 files changed
+2487 -2013

No files matched your search

+7 -5
View File
@@ -10,14 +10,12 @@
******************************************************************************/
package forestry.energy.blocks;
import com.google.common.collect.ImmutableList;
import javax.annotation.Nullable;
import java.util.EnumMap;
import java.util.List;
import com.google.common.collect.ImmutableList;
import forestry.core.blocks.BlockBase;
import forestry.core.tiles.TileUtil;
import forestry.energy.EnergyHelper;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
@@ -30,6 +28,10 @@ import net.minecraft.util.math.Vec3d;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import forestry.core.blocks.BlockBase;
import forestry.core.tiles.TileUtil;
import forestry.energy.EnergyHelper;
public class BlockEngine extends BlockBase<BlockTypeEngine> {
private static final EnumMap<EnumFacing, List<AxisAlignedBB>> boundingBoxesForDirections = new EnumMap<>(EnumFacing.class);
@@ -69,7 +71,7 @@ public class BlockEngine extends BlockBase<BlockTypeEngine> {
for (AxisAlignedBB boundingBoxBase : boundingBoxes) {
AxisAlignedBB boundingBox = boundingBoxBase.offset(pos.getX(), pos.getY(), pos.getZ());
if (entityBox.intersectsWith(boundingBox)) {
if (entityBox.intersects(boundingBox)) {
collidingBoxes.add(boundingBox);
}
}