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() {