Fixed some blocks not being mobile rotate-able

This commit is contained in:
Anuken 2023-10-27 18:42:25 -04:00
parent ef7ee5fdfe
commit 212adddd53

View File

@ -650,7 +650,7 @@ public class Block extends UnlockableContent implements Senseable{
public boolean canReplace(Block other){
if(other.alwaysReplace) return true;
if(other.privileged) return false;
return other.replaceable && (other != this || (rotate && quickRotate)) && this.group != BlockGroup.none && other.group == this.group &&
return other.replaceable && (other != this || (rotate && quickRotate)) && ((this.group != BlockGroup.none && other.group == this.group) || other == this) &&
(size == other.size || (size >= other.size && ((subclass != null && subclass == other.subclass) || group.anyReplace)));
}