fixed dragons destroying pregame lobby
This commit is contained in:
parent
066dfbc9a9
commit
23f93e55cf
@ -28,6 +28,7 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.EntityCombustEvent;
|
||||
import org.bukkit.event.entity.EntityExplodeEvent;
|
||||
import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
import org.bukkit.event.inventory.InventoryType;
|
||||
import org.bukkit.event.player.PlayerInteractEvent;
|
||||
@ -1190,4 +1191,16 @@ public class GameLobbyManager implements IPacketRunnable, Listener
|
||||
|
||||
Manager.GetGame().AddGemBooster(player);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void dragonBlockBreakFix(EntityExplodeEvent event)
|
||||
{
|
||||
if (Manager.GetGame() == null)
|
||||
return;
|
||||
|
||||
if (Manager.GetGame().GetState() != GameState.Recruit)
|
||||
return;
|
||||
|
||||
event.blockList().clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user