Merge branch 'master' into 1.15

This commit is contained in:
gnembon committed 2019-10-04 22:59:44 -03:00
commit b7548456ca
2 files changed
+4 -7

No files matched your search

@@ -176,14 +176,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()))