mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-27 00:45:40 +01:00
actually removed debug messages
This commit is contained in:
parent
279f12b45d
commit
1c9d10529d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user