Skip to content

Commit 6e2294e

Browse files
committed
fix null pointer exception
1 parent 906dc0d commit 6e2294e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/evmodder/evmod/onTick/AutoPlaceMapArt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private final MapPlacementData getNearestMapPlacement(PlayerEntity player){
367367
// if(contents != null && !contents.isEmpty()) mapItem = contents.get(contents.size()-1);
368368

369369
final boolean ALLOW_ONLY_TOP_SLOT = !Configs.Generic.USE_BUNDLE_PACKET.getBooleanValue();
370-
final int TOP_SLOT = Configs.Generic.BUNDLES_ARE_REVERSED.getBooleanValue() ? contents.size()-1 : 0;
370+
final int TOP_SLOT = Configs.Generic.BUNDLES_ARE_REVERSED.getBooleanValue() ? bundleSz-1 : 0;
371371
for(int j=-1; j<bundleSz; ++j){
372372
final ItemStack mapStack;
373373
if(j == -1) mapStack = slots.get(i);

0 commit comments

Comments
 (0)