This commit is contained in:
gnembon committed 2021-06-29 17:28:58 -03:00
1 parent 787eb3e41d
commit 9a4e15da48
28 files changed
+176 -149

No files matched your search

@@ -226,7 +226,7 @@ public class BlockRotator
{
Direction sourceFace = source.getBlockState().get(DispenserBlock.FACING);
World world = source.getWorld();
BlockPos blockpos = source.getBlockPos().offset(sourceFace); // offset
BlockPos blockpos = source.getPos().offset(sourceFace); // offset
BlockState iblockstate = world.getBlockState(blockpos);
Block block = iblockstate.getBlock();
@@ -274,7 +274,7 @@ public class BlockRotator
}
}
// Send block update to the block that just have been rotated.
world.updateNeighbor(blockpos, block, source.getBlockPos());
world.updateNeighbor(blockpos, block, source.getPos());
return stack;
}
@@ -487,7 +487,7 @@ public class EntityPlayerActionPack
boolean execute(ServerPlayerEntity player, Action action)
{
player.updateLastActionTime();
player.method_37413(false); // dropSelectedItem
player.dropSelectedItem(false); // dropSelectedItem
return false;
}
},
@@ -497,7 +497,7 @@ public class EntityPlayerActionPack
boolean execute(ServerPlayerEntity player, Action action)
{
player.updateLastActionTime();
player.method_37413(true); // dropSelectedItem
player.dropSelectedItem(true); // dropSelectedItem
return false;
}
},
+1 -1
View File
@@ -147,7 +147,7 @@ public class TickSpeed
time_warp_start_time = 0;
if (tick_warp_callback != null)
{
CommandManager icommandmanager = tick_warp_sender.getMinecraftServer().getCommandManager();
CommandManager icommandmanager = tick_warp_sender.getServer().getCommandManager();
try
{
icommandmanager.execute(tick_warp_sender, tick_warp_callback);