mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-01 05:17:52 +01:00
Fixed an issue where spawn reasons wouldnt be carried over.
This commit is contained in:
parent
aac79515a8
commit
461da02103
@ -146,6 +146,9 @@ public class EntityStack {
|
||||
newEntity.getEquipment().setItemInHand(CompatibleMaterial.GOLDEN_SWORD.getItem());
|
||||
|
||||
if (Settings.CARRY_OVER_METADATA_ON_DEATH.getBoolean()) {
|
||||
if (killed.hasMetadata("US_REASON"))
|
||||
newEntity.setMetadata("US_REASON", killed.getMetadata("US_REASON").get(0));
|
||||
|
||||
if (killed.hasMetadata("ES"))
|
||||
newEntity.setMetadata("ES", killed.getMetadata("ES").get(0));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user