Skip to content

Commit

Permalink
Crazy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunf committed Aug 2, 2024
1 parent 13ad388 commit 9c179d6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.nexia.core.listeners.nexus;

import com.nexia.core.games.util.PlayerGameMode;
import com.nexia.nexus.api.event.player.PlayerHotbarDropItemEvent;
import com.nexia.core.utilities.misc.EventUtil;
import com.nexia.base.player.NexiaPlayer;
Expand All @@ -14,6 +15,10 @@ public void registerListener(){
playerDropItemEvent.setCancelled(true);
player.refreshInventory();
}
if (player.isInGameMode(PlayerGameMode.LOBBY)) {
playerDropItemEvent.setCancelled(true);
player.refreshInventory();
}
});
}
}

0 comments on commit 9c179d6

Please sign in to comment.