@@ -94,13 +94,13 @@ public void registerFunctions() {
9494 Optional <ServerPlayerEntity > optionalPlayer = serverCommandSource .getWorld ().getPlayers ().stream ()
9595 .filter (serverPlayerEntity -> serverPlayerEntity .getNameForScoreboard ().equals (input )).findFirst ();
9696 if (optionalPlayer .isPresent ()) {
97- return optionalPlayer .get ().getEntityWorld ().getRegistryKey ().getValue ().toString ();
97+ return optionalPlayer .get ().getWorld ().getRegistryKey ().getValue ().toString ();
9898 }
9999 } else if (commandSource instanceof FabricClientCommandSource clientCommandSource ) {
100100 Optional <AbstractClientPlayerEntity > optionalPlayer = clientCommandSource .getWorld ().getPlayers ().stream ()
101101 .filter (clientPlayerEntity -> clientPlayerEntity .getNameForScoreboard ().equals (input )).findFirst ();
102102 if (optionalPlayer .isPresent ()) {
103- return optionalPlayer .get ().getEntityWorld ().getRegistryKey ().getValue ().toString ();
103+ return optionalPlayer .get ().getWorld ().getRegistryKey ().getValue ().toString ();
104104 }
105105 }
106106 return null ;
@@ -110,13 +110,13 @@ public void registerFunctions() {
110110 Optional <ServerPlayerEntity > optionalPlayer = serverCommandSource .getWorld ().getPlayers ().stream ()
111111 .filter (serverPlayerEntity -> serverPlayerEntity .getNameForScoreboard ().equals (input )).findFirst ();
112112 if (optionalPlayer .isPresent ()) {
113- return optionalPlayer .get ().getEntityWorld ().getDimension ().effects ().toString ();
113+ return optionalPlayer .get ().getWorld ().getDimension ().effects ().toString ();
114114 }
115115 } else if (commandSource instanceof FabricClientCommandSource clientCommandSource ) {
116116 Optional <AbstractClientPlayerEntity > optionalPlayer = clientCommandSource .getWorld ().getPlayers ().stream ()
117117 .filter (clientPlayerEntity -> clientPlayerEntity .getNameForScoreboard ().equals (input )).findFirst ();
118118 if (optionalPlayer .isPresent ()) {
119- return optionalPlayer .get ().getEntityWorld ().getDimension ().effects ().toString ();
119+ return optionalPlayer .get ().getWorld ().getDimension ().effects ().toString ();
120120 }
121121 }
122122 return null ;
0 commit comments