mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-12-25 18:47:56 +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>
|
<dependency>
|
||||||
<groupId>com.github.DeadSilenceIV</groupId>
|
<groupId>com.github.DeadSilenceIV</groupId>
|
||||||
<artifactId>AdvancedChestsAPI</artifactId>
|
<artifactId>AdvancedChestsAPI</artifactId>
|
||||||
<version>1.8</version>
|
<version>2.9-BETA</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -425,11 +425,11 @@ public class IslandLevelCalculator {
|
|||||||
for (BlockState bs : chunk.getTileEntities()) {
|
for (BlockState bs : chunk.getTileEntities()) {
|
||||||
if (bs instanceof Container) {
|
if (bs instanceof Container) {
|
||||||
if (addon.isAdvChestEnabled()) {
|
if (addon.isAdvChestEnabled()) {
|
||||||
AdvancedChest aChest = AdvancedChestsAPI.getChestManager().getAdvancedChest(bs.getLocation());
|
AdvancedChest<?,?> aChest = AdvancedChestsAPI.getChestManager().getAdvancedChest(bs.getLocation());
|
||||||
if (aChest != null) {
|
if (aChest != null && aChest.getChestType().getName().equals("NORMAL")) {
|
||||||
aChest.getPages().stream().map(ChestPage::getItems).forEach(c -> {
|
aChest.getPages().stream().map(ChestPage::getItems).forEach(c -> {
|
||||||
for (ItemStack i : c) {
|
for (Object i : c) {
|
||||||
countItemStack(i);
|
countItemStack((ItemStack)i);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user