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());
|
||||
boolean can = is_not_reloading;
|
||||
|
||||
for (Area a : areas){
|
||||
if (a.enabled && a.does_intersect(g_position)){
|
||||
can=a.get_action_bool(action);
|
||||
break;
|
||||
if (is_not_reloading)
|
||||
for (Area a : areas){
|
||||
if (a.enabled && a.does_intersect(g_position)){
|
||||
can=a.get_action_bool(action);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return can;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue