SPIGOT-7649: Allow /setworldspawn command in all worlds again
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b563a66078
commit
f13c8f9203
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/net/minecraft/server/commands/CommandSetWorldSpawn.java
|
||||||
|
+++ b/net/minecraft/server/commands/CommandSetWorldSpawn.java
|
||||||
|
@@ -30,7 +30,7 @@
|
||||||
|
private static int setSpawn(CommandListenerWrapper commandlistenerwrapper, BlockPosition blockposition, float f) {
|
||||||
|
WorldServer worldserver = commandlistenerwrapper.getLevel();
|
||||||
|
|
||||||
|
- if (worldserver.dimension() != World.OVERWORLD) {
|
||||||
|
+ if (false && worldserver.dimension() != World.OVERWORLD) { // CraftBukkit - SPIGOT-7649: allow in all worlds
|
||||||
|
commandlistenerwrapper.sendFailure(IChatBaseComponent.translatable("commands.setworldspawn.failure.not_overworld"));
|
||||||
|
return 0;
|
||||||
|
} else {
|
Loading…
Add table
Add a link
Reference in a new issue