Attempt to fix a dupe with Drops upgrade and chest on Llama (The content of chest is duplicated)

This commit is contained in:
0ddlyoko 2020-03-12 01:19:05 +01:00 committed by Brianna
parent 474bfd11b4
commit 72a6ce80fd

View File

@ -25,6 +25,7 @@ import org.bukkit.entity.Hanging;
import org.bukkit.entity.Horse;
import org.bukkit.entity.Illager;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Llama;
import org.bukkit.entity.Mule;
import org.bukkit.entity.Pig;
import org.bukkit.entity.Player;
@ -656,6 +657,10 @@ public class Entity implements Listener {
if (NMSUtil.getVersionNumber() > 10) {
if (livingEntity instanceof Evoker) return;
}
if (NMSUtil.getVersionNumber() > 11) {
if (livingEntity instanceof Llama) return;
}
if (NMSUtil.getVersionNumber() > 13) {
if (livingEntity instanceof Ravager || livingEntity instanceof Illager) return;