I guess everything is unsafe now
This commit is contained in:
@@ -324,7 +324,7 @@ public class MassDriver extends Block{
|
||||
}
|
||||
|
||||
protected boolean shooterValid(Building other){
|
||||
return other instanceof MassDriverBuild entity && other.consValid() && entity.block == block && entity.link == pos() && within(other, range);
|
||||
return other instanceof MassDriverBuild entity && other.isValid() && other.consValid() && entity.block == block && entity.link == pos() && within(other, range);
|
||||
}
|
||||
|
||||
protected boolean linkValid(){
|
||||
|
||||
@@ -184,6 +184,7 @@ public class PayloadMassDriver extends PayloadBlock{
|
||||
if(current != null &&
|
||||
!(
|
||||
current instanceof PayloadDriverBuild entity &&
|
||||
current.isValid() &&
|
||||
entity.consValid() && entity.block == block &&
|
||||
entity.link == pos() && within(current, range)
|
||||
)){
|
||||
|
||||
Reference in New Issue
Block a user