Skip to content

Commit

Permalink
that call isn't necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Inf1nityy committed Aug 2, 2024
1 parent e786465 commit aa97b8a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.nexia.core.listeners.nexus;

import com.nexia.core.games.util.LobbyUtil;
import com.nexia.nexus.api.event.player.PlayerHotbarDropItemEvent;
import com.nexia.core.utilities.misc.EventUtil;
import com.nexia.base.player.NexiaPlayer;
Expand All @@ -11,7 +10,7 @@ public void registerListener(){

NexiaPlayer player = new NexiaPlayer(playerDropItemEvent.getPlayer());

if (!EventUtil.dropItem(player, playerDropItemEvent.getItemStack()) || LobbyUtil.isLobbyWorld(player.getWorld())) {
if (!EventUtil.dropItem(player, playerDropItemEvent.getItemStack())) {
playerDropItemEvent.setCancelled(true);
player.refreshInventory();
}
Expand Down

0 comments on commit aa97b8a

Please sign in to comment.