1.20.2-pre4
This commit is contained in:
1 parent
e13c256611
commit
93079eb9ba
3 files changed
+7
-7
No files matched your search
@@ -2,8 +2,8 @@ package carpet.helpers;
|
||||
|
||||
import carpet.fakes.PistonBlockInterface;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.BlockSource;
|
||||
import net.minecraft.core.Direction;
|
||||
import net.minecraft.core.dispenser.BlockSource;
|
||||
import net.minecraft.core.dispenser.DispenseItemBehavior;
|
||||
import net.minecraft.core.dispenser.OptionalDispenseItemBehavior;
|
||||
import net.minecraft.world.InteractionHand;
|
||||
@@ -51,9 +51,9 @@ public class BlockRotator
|
||||
|
||||
public static ItemStack dispenserRotate(BlockSource source, ItemStack stack)
|
||||
{
|
||||
Direction sourceFace = source.getBlockState().getValue(DispenserBlock.FACING);
|
||||
Level world = source.getLevel();
|
||||
BlockPos blockpos = source.getPos().relative(sourceFace); // offset
|
||||
Direction sourceFace = source.state().getValue(DispenserBlock.FACING);
|
||||
Level world = source.level();
|
||||
BlockPos blockpos = source.pos().relative(sourceFace); // offset
|
||||
BlockState blockstate = world.getBlockState(blockpos);
|
||||
Block block = blockstate.getBlock();
|
||||
|
||||
@@ -100,7 +100,7 @@ public class BlockRotator
|
||||
}
|
||||
}
|
||||
// Send block update to the block that just have been rotated.
|
||||
world.neighborChanged(blockpos, block, source.getPos());
|
||||
world.neighborChanged(blockpos, block, source.pos());
|
||||
|
||||
return stack;
|
||||
}
|
||||
|
||||
@@ -461,7 +461,7 @@ public class FileArgument
|
||||
else
|
||||
{
|
||||
dataInputStream.readUTF();
|
||||
return TagTypes.getType(b).load(dataInputStream, 0, NbtAccounter.UNLIMITED);
|
||||
return TagTypes.getType(b).load(dataInputStream, NbtAccounter.unlimitedHeap());
|
||||
}
|
||||
}
|
||||
catch (IOException secondIO)
|
||||
|
||||
Reference in new issue
Block a user