diff --git a/src/main/java/com/minecolonies/core/placementhandlers/GravePlacementHandler.java b/src/main/java/com/minecolonies/core/placementhandlers/GravePlacementHandler.java index f6ab45eb4d1..c75732b4fbe 100644 --- a/src/main/java/com/minecolonies/core/placementhandlers/GravePlacementHandler.java +++ b/src/main/java/com/minecolonies/core/placementhandlers/GravePlacementHandler.java @@ -72,7 +72,7 @@ public List getRequiredItems( final List itemList = new ArrayList<>(); itemList.add(BlockUtils.getItemStackFromBlockState(blockState)); - for (final ItemStack stack : PlacementHandlers.getItemsFromTileEntity(tileEntityData, blockState, world.registryAccess())) + for (final ItemStack stack : PlacementHandlers.getItemsFromTileEntity(tileEntityData, blockState, world)) { if (!ItemStackUtils.isEmpty(stack)) { diff --git a/src/main/java/com/minecolonies/core/placementhandlers/RackPlacementHandler.java b/src/main/java/com/minecolonies/core/placementhandlers/RackPlacementHandler.java index b189dd4923b..5d5bc08735f 100644 --- a/src/main/java/com/minecolonies/core/placementhandlers/RackPlacementHandler.java +++ b/src/main/java/com/minecolonies/core/placementhandlers/RackPlacementHandler.java @@ -68,7 +68,7 @@ public List getRequiredItems( } itemList.add(BlockUtils.getItemStackFromBlockState(blockState)); - for (final ItemStack stack : PlacementHandlers.getItemsFromTileEntity(tileEntityData, blockState, world.registryAccess())) + for (final ItemStack stack : PlacementHandlers.getItemsFromTileEntity(tileEntityData, blockState, world)) { if (!ItemStackUtils.isEmpty(stack)) {