mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-09 03:57:40 +08:00
Fixed shop lineup
This commit is contained in:
parent
49e8a70e6d
commit
7b29db820b
@ -45,15 +45,6 @@ public class SpawnerDropEvent extends SpawnerEvent implements Cancellable {
|
||||
return location;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the player involved in this event
|
||||
*
|
||||
* @return the involved player
|
||||
*/
|
||||
public Player getPlayer() {
|
||||
return player;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the stack size of the broken spawner
|
||||
*
|
||||
|
@ -40,13 +40,13 @@ public class Shop {
|
||||
List<SpawnerData> entities = new ArrayList<>();
|
||||
|
||||
int num = 0, show = 0;
|
||||
int start = (page - 1) * 32;
|
||||
int start = (page - 1) * 33;
|
||||
|
||||
for (SpawnerData spawnerData : instance.getSpawnerManager().getAllSpawnerData()) {
|
||||
if (!spawnerData.getIdentifyingName().toLowerCase().equals("omni")
|
||||
&& spawnerData.isInShop() && spawnerData.isActive()
|
||||
&& p.hasPermission("epicspawners.shop." + Methods.getTypeFromString(spawnerData.getIdentifyingName()).replaceAll(" ", "_"))) {
|
||||
if (num >= start && show <= 32) {
|
||||
if (num >= start && show <= 33) {
|
||||
entities.add(spawnerData);
|
||||
show++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user