1.16-pre3
This commit is contained in:
1 parent
9e80222338
commit
441676a1e5
5 files changed
+14
-13
No files matched your search
@@ -237,7 +237,7 @@ public class PlayerCommand
|
||||
source::getRotation
|
||||
);
|
||||
RegistryKey<World> dimType = tryGetArg(
|
||||
() -> DimensionArgumentType.getDimensionArgument(context, "dimension"),
|
||||
() -> DimensionArgumentType.getDimensionArgument(context, "dimension").getRegistryKey(),
|
||||
() -> source.getWorld().getRegistryKey() // dimension.getType()
|
||||
);
|
||||
GameMode mode = GameMode.CREATIVE;
|
||||
|
||||
@@ -17,6 +17,7 @@ import net.minecraft.entity.SpawnGroup;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.server.command.ServerCommandSource;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.util.DyeColor;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
@@ -260,9 +261,9 @@ public class SpawnCommand
|
||||
return 1;
|
||||
}
|
||||
|
||||
private static int mobcapsForDimension(ServerCommandSource source, RegistryKey<World> dim)
|
||||
private static int mobcapsForDimension(ServerCommandSource source, ServerWorld world)
|
||||
{
|
||||
Messenger.send(source, SpawnReporter.printMobcapsForDimension(source.getMinecraftServer().getWorld(dim), true));
|
||||
Messenger.send(source, SpawnReporter.printMobcapsForDimension(world, true));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user