Fix Pathfinding and obscure glitchy buggy 0 tick farms

I swear the crap that stuff will abuse to make stuff happen is insane.

Hash codes apparently changing behavior of stuff based on its value, so
reverting e9fcee1190

Fixes #3346
Fixes #3341
This commit is contained in:
Aikar
2020-05-11 21:18:11 -04:00
parent c0441b6262
commit 92497a1b5d
2 changed files with 10 additions and 38 deletions

View File

@@ -155,7 +155,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- for (Iterator iterator = set.iterator(); iterator.hasNext(); f = Math.min(f1, f)) {
- PathDestination pathdestination = (PathDestination) iterator.next();
+ for (int i = 0, listSize = list.size(); i < listSize; i++) { // Paper
+ for (int i = 0, listSize = list.size(); i < listSize; f = Math.min(f1, f), i++) { // Paper
+ PathDestination pathdestination = list.get(i).getKey(); // Paper
f1 = pathpoint.a(pathdestination);