mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
fixed crashing in multiplayer after playing singleplayer, fixes #6
(the event does not stop when the server stops)
This commit is contained in:
parent
6749255fa7
commit
f4e7c55bca
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ public class Events {
|
|||
|
||||
// right click on block event
|
||||
UseBlockCallback.EVENT.register((pl, world, hand, hitResult) -> {
|
||||
if (Data.isClient() && !Data.isSingleplayer()) return ActionResult.PASS;
|
||||
// get the server player
|
||||
ServerPlayerEntity player = Data.getServer().getPlayerManager().getPlayer(pl.getUuid());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue