mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix crash with bucketmode for fluid tanks.
This commit is contained in:
1 file changed
+2
-2
@@ -454,8 +454,8 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
|
||||
} else if (type == MachineType.FLUID_TANK && getBucketMode(itemstack)) {
|
||||
if (SecurityUtils.canAccess(entityplayer, itemstack)) {
|
||||
RayTraceResult pos = rayTrace(world, entityplayer, !entityplayer.isSneaking());
|
||||
|
||||
if (pos.typeOfHit == RayTraceResult.Type.BLOCK) {
|
||||
//It can be null if there is nothing in range
|
||||
if (pos != null && pos.typeOfHit == RayTraceResult.Type.BLOCK) {
|
||||
Coord4D coord = new Coord4D(pos.getBlockPos(), world);
|
||||
|
||||
if (!world.provider.canMineBlock(entityplayer, coord.getPos())) {
|
||||
|
||||
Reference in new issue
Block a user