Cargo units *will* chase you down if you pick up their target. (#8033)

This commit is contained in:
MEEPofFaith 2023-01-07 09:55:19 -08:00 committed by GitHub
parent ba72e9c50d
commit eb0481a1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,8 +60,8 @@ public class CargoAI extends AIController{
}
}else{
//what if some prankster reconfigures the source while the unit is moving? we can't have that!
if(unloadTarget.item != itemTarget){
//what if some prankster reconfigures or picks up the target while the unit is moving? we can't have that!
if(unloadTarget.item != itemTarget || unloadTarget.isPayload()){
unloadTarget = null;
return;
}