actually removed debug messages

This commit is contained in:
Aria 2019-11-30 20:05:19 +01:00
parent 279f12b45d
commit 1c9d10529d

View File

@ -134,12 +134,8 @@ public class EditableGuildView extends EditableInventory {
public ItemStack display(GeneratedInventory invpar, int n) {
GuildViewInventory inv = (GuildViewInventory) invpar;
int maxpages = (int) Math.ceil((inv.getPlayerData().getGuild().getMembers().count() + 20) / inv.getByFunction("member").getSlots().size());
MMOCore.log("Member Slots: " + inv.getByFunction("member").getSlots().size());
MMOCore.log("Member Count: " + inv.getPlayerData().getGuild().getMembers().count());
MMOCore.log("Max Pages: " + maxpages);
if(function.equals("next") && inv.getPage() == maxpages)
if(function.equals("next"))
if(inv.getPage() == (int) Math.ceil((inv.getPlayerData().getGuild().getMembers().count() + 20) / inv.getByFunction("member").getSlots().size()))
return null;
if(function.equals("previous") && inv.getPage() == 1)
return null;