Skip to content

Commit 3328f2e

Browse files
authored
Fix Issues with Switching Modes on MultiMapMultiblockController (#2647)
1 parent 565f03e commit 3328f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gregtech/api/metatileentity/multiblock/MultiMapMultiblockController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public boolean onScrewdriverClick(EntityPlayer playerIn, EnumHand hand, EnumFaci
5959
index = (recipeMapIndex + 1) % recipeMaps.length;
6060

6161
setRecipeMapIndex(index);
62-
this.recipeMapWorkable.forceRecipeRecheck();
6362
} else {
6463
playerIn.sendStatusMessage(
6564
new TextComponentTranslation("gregtech.multiblock.multiple_recipemaps.switch_message"), true);
@@ -79,6 +78,7 @@ public void setRecipeMapIndex(int index) {
7978
this.recipeMapIndex = index;
8079
if (!getWorld().isRemote) {
8180
writeCustomData(GregtechDataCodes.RECIPE_MAP_INDEX, buf -> buf.writeByte(index));
81+
recipeMapWorkable.forceRecipeRecheck();
8282
markDirty();
8383
}
8484
}

0 commit comments

Comments
 (0)