Fix zero reputation deleting villagers (#3857)
This commit is contained in:
@@ -17,7 +17,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ List<Reputation.b> list = new it.unimi.dsi.fastutil.objects.ObjectArrayList<>();
|
||||
+ for (Map.Entry<UUID, Reputation.a> entry : getReputations().entrySet()) {
|
||||
+ for (Reputation.b cur : entry.getValue().decompress(entry.getKey())) {
|
||||
+ list.add(cur);
|
||||
+ if (cur.a() != 0)
|
||||
+ list.add(cur);
|
||||
+ }
|
||||
+ }
|
||||
+ return list;
|
||||
|
||||
Reference in New Issue
Block a user