mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-03 13:30:25 +07:00
Fixed some blocks not being mobile rotate-able
This commit is contained in:
parent
ef7ee5fdfe
commit
212adddd53
@ -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)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user