Skip to content

Commit

Permalink
accept NBTed items as turtle upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Apr 27, 2024
1 parent 7acb776 commit 8be8351
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected PeripheralTurtleUpgrade(ResourceLocation id, ItemStack item) {
super(id, TurtleUpgradeType.PERIPHERAL, TranslationUtil.turtle(id.getPath()), item);
}

//TODO: Do we still need this with the new modeller system?
// TODO: Do we still need this with the new modeller system?
public abstract ModelResourceLocation getLeftModel();

public abstract ModelResourceLocation getRightModel();
Expand All @@ -37,4 +37,10 @@ public IPeripheral createPeripheral(@NotNull ITurtleAccess turtle, @NotNull Turt
}
return peripheral;
}

@Override
public boolean isItemSuitable(@NotNull ItemStack stack ) {
// always accept NBTed items
return true;
}
}

0 comments on commit 8be8351

Please sign in to comment.