mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-12-24 18:17:41 +01:00
Support for AdvancedChests was updated. (#266)
This commit is contained in:
parent
47053fde31
commit
90ae98e599
2
pom.xml
2
pom.xml
@ -209,7 +209,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.DeadSilenceIV</groupId>
|
||||
<artifactId>AdvancedChestsAPI</artifactId>
|
||||
<version>1.8</version>
|
||||
<version>2.9-BETA</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -425,11 +425,11 @@ public class IslandLevelCalculator {
|
||||
for (BlockState bs : chunk.getTileEntities()) {
|
||||
if (bs instanceof Container) {
|
||||
if (addon.isAdvChestEnabled()) {
|
||||
AdvancedChest aChest = AdvancedChestsAPI.getChestManager().getAdvancedChest(bs.getLocation());
|
||||
if (aChest != null) {
|
||||
AdvancedChest<?,?> aChest = AdvancedChestsAPI.getChestManager().getAdvancedChest(bs.getLocation());
|
||||
if (aChest != null && aChest.getChestType().getName().equals("NORMAL")) {
|
||||
aChest.getPages().stream().map(ChestPage::getItems).forEach(c -> {
|
||||
for (ItemStack i : c) {
|
||||
countItemStack(i);
|
||||
for (Object i : c) {
|
||||
countItemStack((ItemStack)i);
|
||||
}
|
||||
});
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user