Skip to content

Commit

Permalink
Fix Issues with Switching Modes on MultiMapMultiblockController (Greg…
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit authored Nov 9, 2024
1 parent 565f03e commit 3328f2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public boolean onScrewdriverClick(EntityPlayer playerIn, EnumHand hand, EnumFaci
index = (recipeMapIndex + 1) % recipeMaps.length;

setRecipeMapIndex(index);
this.recipeMapWorkable.forceRecipeRecheck();
} else {
playerIn.sendStatusMessage(
new TextComponentTranslation("gregtech.multiblock.multiple_recipemaps.switch_message"), true);
Expand All @@ -79,6 +78,7 @@ public void setRecipeMapIndex(int index) {
this.recipeMapIndex = index;
if (!getWorld().isRemote) {
writeCustomData(GregtechDataCodes.RECIPE_MAP_INDEX, buf -> buf.writeByte(index));
recipeMapWorkable.forceRecipeRecheck();
markDirty();
}
}
Expand Down

0 comments on commit 3328f2e

Please sign in to comment.