1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Pass variant and rotationVariant to getIsReplaceable

This commit is contained in:
tobspr
2022-02-22 16:37:55 +01:00
parent 895a9eb7ae
commit 556caed760
11 changed files with 44 additions and 49 deletions

View File

@@ -15,9 +15,9 @@ const BeltExtension = ({ $super, $old }) => ({
return !$old.getShowWiresLayerPreview();
},
getIsReplaceable() {
getIsReplaceable(variant, rotationVariant) {
// Instead of super, use $super
return $super.getIsReplaceable.call(this);
return $super.getIsReplaceable.call(this, variant, rotationVariant);
},
getIsRemoveable() {