mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Update for 1.11. Missing assets, unstable.
This commit is contained in:
1 parent
30d7365518
commit
9611ae08ae
1145 files changed
+15561
-18107
No files matched your search
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.energy.blocks;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.EnumMap;
|
||||
import java.util.List;
|
||||
|
||||
@@ -58,7 +59,7 @@ public class BlockEngine extends BlockBase<BlockTypeEngine> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn) {
|
||||
public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn) {
|
||||
EnumFacing orientation = state.getValue(FACING);
|
||||
List<AxisAlignedBB> boundingBoxes = boundingBoxesForDirections.get(orientation);
|
||||
if (boundingBoxes == null) {
|
||||
@@ -105,11 +106,8 @@ public class BlockEngine extends BlockBase<BlockTypeEngine> {
|
||||
|
||||
@Override
|
||||
public boolean rotateBlock(World world, BlockPos pos, EnumFacing axis) {
|
||||
if (rotate(world, pos)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return super.rotateBlock(world, pos, axis);
|
||||
return rotate(world, pos) ||
|
||||
super.rotateBlock(world, pos, axis);
|
||||
}
|
||||
|
||||
private static boolean isOrientedAtEnergyReciever(World world, BlockPos pos, EnumFacing orientation) {
|
||||
|
||||
Reference in new issue
Block a user