Skip to content

Commit 0c045ad

Browse files
committed
fixed error
1 parent 1cf6b79 commit 0c045ad

File tree

8 files changed

+3
-0
lines changed

8 files changed

+3
-0
lines changed

src/main/java/net/potato/tuff/TuffX.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ private void handleIncomingPacket(Player player, Location loc, String action, in
145145
player.sendPluginMessage(this, CHANNEL, createBelowY0StatusPayload(true));
146146
} else {
147147
logDebug("Not a supported world!");
148+
player.sendPluginMessage(this, CHANNEL, createBelowY0StatusPayload(false));
148149
}
149150
break;
150151
case "use_on_block":
@@ -223,6 +224,8 @@ public void onPlayerChangeWorld(PlayerChangedWorldEvent event) {
223224
}
224225

225226
player.sendPluginMessage(this, CHANNEL, createDimensionPayload());
227+
228+
player.sendPluginMessage(this, CHANNEL, createBelowY0StatusPayload(enabledWorlds.contains(player.getWorld().getName())));
226229
}
227230

228231
private void processAndSendChunk(final Player player, final Chunk chunk) {

target/TuffX.jar

23 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
55 Bytes
Binary file not shown.

target/original-TuffX.jar

23 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)