mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
MC-157395, SPIGOT-5193: Small armor stands do not drop loot
By: md_5 <git@md-5.net>
This commit is contained in:
parent
97e2af5d3c
commit
1547b12bff
1 changed files with 10 additions and 1 deletions
|
@ -139,8 +139,17 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -602,6 +639,7 @@
|
@@ -600,8 +637,16 @@
|
||||||
|
return this.isSmall();
|
||||||
|
}
|
||||||
|
|
||||||
|
+ // CraftBukkit start
|
||||||
|
+ @Override
|
||||||
|
+ protected boolean isDropExperience() {
|
||||||
|
+ return true; // MC-157395, SPIGOT-5193 even baby (small) armor stands should drop
|
||||||
|
+ }
|
||||||
|
+ // CraftBukkit end
|
||||||
|
+
|
||||||
@Override
|
@Override
|
||||||
public void killEntity() {
|
public void killEntity() {
|
||||||
+ org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, drops); // CraftBukkit - call event
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(this, drops); // CraftBukkit - call event
|
||||||
|
|
Loading…
Add table
Reference in a new issue