File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/world/bentobox/level/calculators Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 205
205
<dependency >
206
206
<groupId >com.github.DeadSilenceIV</groupId >
207
207
<artifactId >AdvancedChestsAPI</artifactId >
208
- <version >1.4 </version >
208
+ <version >1.6 </version >
209
209
</dependency >
210
210
</dependencies >
211
211
Original file line number Diff line number Diff line change 35
35
36
36
import us .lynuxcraft .deadsilenceiv .advancedchests .AdvancedChestsAPI ;
37
37
import us .lynuxcraft .deadsilenceiv .advancedchests .chest .AdvancedChest ;
38
- import us .lynuxcraft .deadsilenceiv .advancedchests .chest .ChestPage ;
38
+ import us .lynuxcraft .deadsilenceiv .advancedchests .chest .gui . page . ChestPage ;
39
39
import world .bentobox .bentobox .BentoBox ;
40
40
import world .bentobox .bentobox .database .objects .Island ;
41
41
import world .bentobox .bentobox .util .Pair ;
@@ -430,7 +430,11 @@ private void scanChests(Chunk chunk) {
430
430
if (addon .isAdvChestEnabled ()) {
431
431
AdvancedChest aChest = AdvancedChestsAPI .getChestManager ().getAdvancedChest (bs .getLocation ());
432
432
if (aChest != null ) {
433
- aChest .getPages ().stream ().map (ChestPage ::getItems ).forEach (c -> c .forEach (this ::countItemStack ));
433
+ aChest .getPages ().stream ().map (ChestPage ::getItems ).forEach (c -> {
434
+ for (ItemStack i : c ) {
435
+ countItemStack (i );
436
+ }
437
+ });
434
438
continue ;
435
439
}
436
440
}
You can’t perform that action at this time.
0 commit comments