1.19.4-pre1
This commit is contained in:
1 parent
4d842ae382
commit
4c8e477f4b
15 files changed
+37
-30
No files matched your search
@@ -30,7 +30,7 @@ public class PerimeterInfoCommand
|
||||
requires((player) -> CommandHelper.canUseCommand(player, CarpetSettings.commandPerimeterInfo)).
|
||||
executes( (c) -> perimeterDiagnose(
|
||||
c.getSource(),
|
||||
new BlockPos(c.getSource().getPosition()),
|
||||
BlockPos.containing(c.getSource().getPosition()),
|
||||
null)).
|
||||
then(argument("center position", BlockPosArgument.blockPos()).
|
||||
executes( (c) -> perimeterDiagnose(
|
||||
|
||||
@@ -311,7 +311,7 @@ public class PlayerCommand
|
||||
}
|
||||
|
||||
MinecraftServer server = source.getServer();
|
||||
if (!Level.isInSpawnableBounds(new BlockPos(pos.x, pos.y, pos.z)))
|
||||
if (!Level.isInSpawnableBounds(BlockPos.containing(pos.x, pos.y, pos.z)))
|
||||
{
|
||||
Messenger.m(context.getSource(), "rb Player "+playerName+" cannot be placed outside of the world");
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user