This commit is contained in:
parent
234069b0ac
commit
2256d3d9c7
1 changed files with 6 additions and 5 deletions
|
@ -26,12 +26,13 @@ public class Region {
|
||||||
Vector3 g_position = new Vector3(position.getGlobalX(),position.getGlobalY(),position.getGlobalZ());
|
Vector3 g_position = new Vector3(position.getGlobalX(),position.getGlobalY(),position.getGlobalZ());
|
||||||
boolean can = is_not_reloading;
|
boolean can = is_not_reloading;
|
||||||
|
|
||||||
for (Area a : areas){
|
if (is_not_reloading)
|
||||||
if (a.enabled && a.does_intersect(g_position)){
|
for (Area a : areas){
|
||||||
can=a.get_action_bool(action);
|
if (a.enabled && a.does_intersect(g_position)){
|
||||||
break;
|
can=a.get_action_bool(action);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return can;
|
return can;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue