fix errors and excepted axes from auto gb protection.
This commit is contained in:
1 parent
62f4a4c113
commit
891cfbddde
2 files changed
+4
-7
No files matched your search
@@ -177,14 +177,10 @@ public class EntityPlayerActionPack
|
||||
public void onUpdate()
|
||||
{
|
||||
boolean used = false;
|
||||
actions.entrySet().removeIf((e) -> e.getValue().done);
|
||||
for (Map.Entry<ActionType, Action> e : actions.entrySet())
|
||||
{
|
||||
Action action = e.getValue();
|
||||
if (action.done)
|
||||
{
|
||||
actions.remove(e.getKey());
|
||||
continue;
|
||||
}
|
||||
if (used && e.getKey() == ActionType.ATTACK)
|
||||
continue;
|
||||
if (action.tick(this, e.getKey()))
|
||||
|
||||
Reference in new issue
Block a user