mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Fixed some blocks not being mobile rotate-able
This commit is contained in:
parent
ef7ee5fdfe
commit
212adddd53
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue