Fix zero reputation deleting villagers (#3857)

This commit is contained in:
Mariell
2020-07-17 19:47:04 +02:00
parent 518ae65609
commit 827e6cec16
2 changed files with 8 additions and 6 deletions

View File

@@ -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;