Preserve the retained House fallback class bytes
Some checks failed
DuneRealms Resourcepack CI / resourcepack (push) Failing after 10s
DuneRealms Plugin CI / plugins (push) Successful in 2m31s

This commit is contained in:
unimatrixgit 2026-11-30 23:24:31 +01:00
commit c7c390972d

View file

@ -18,7 +18,6 @@ import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import java.time.*;
import java.util.*;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
/** Lobby presentation only. Character authority and committed keys remain central. */
@ -270,7 +269,7 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
()->MCGUIMenus.show(p,"Choose your House","",screen.inventory,screen.actions,screen.gate)))return;
p.openInventory(screen.inventory);expire(screen);
}
static boolean presentHouseCards(Inventory inventory,Map<Integer,Runnable> actions,BooleanSupplier showCards){
static boolean presentHouseCards(Inventory inventory,Map<Integer,Runnable> actions,java.util.function.BooleanSupplier showCards){
if(showCards.getAsBoolean())return true;
// Only the chest fallback needs a multi-slot hit area for each background tile.
for(int i=0;i<CENTRES.length;i++){