diff --git a/Spigot-API-Patches/Add-villager-reputation-API.patch b/Spigot-API-Patches/Add-villager-reputation-API.patch index f996577fb8..83d5df0364 100644 --- a/Spigot-API-Patches/Add-villager-reputation-API.patch +++ b/Spigot-API-Patches/Add-villager-reputation-API.patch @@ -167,5 +167,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * for all players mapped by their {@link UUID unique IDs}. + */ + public void setReputations(@NotNull Map reputations); ++ ++ /** ++ * Clear all reputations from this villager. This removes every single ++ * reputation regardless of its impact and the player associated. ++ */ ++ public void clearReputations(); + // Paper end } diff --git a/Spigot-Server-Patches/Add-villager-reputation-API.patch b/Spigot-Server-Patches/Add-villager-reputation-API.patch index 9a0a83f154..d37d07d188 100644 --- a/Spigot-Server-Patches/Add-villager-reputation-API.patch +++ b/Spigot-Server-Patches/Add-villager-reputation-API.patch @@ -143,5 +143,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + setReputation(entry.getKey(), entry.getValue()); + } + } ++ ++ @Override ++ public void clearReputations() { ++ getHandle().getReputation().getReputations().clear(); ++ } + // Paper end }