mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 04:25:21 +01:00
Minor fix for loots
This commit is contained in:
parent
d610f41d00
commit
9f77b48974
@ -133,8 +133,8 @@ public class EntityStack extends StackedEntity {
|
||||
return;
|
||||
}
|
||||
}
|
||||
handleSingleStackDeath(killed, drops, droppedExp, event);
|
||||
}
|
||||
handleSingleStackDeath(killed, drops, droppedExp, event);
|
||||
}
|
||||
|
||||
public synchronized LivingEntity takeOneAndSpawnEntity(Location location) {
|
||||
|
@ -109,6 +109,10 @@ public class EntityStackManager {
|
||||
if (stack == null) return null;
|
||||
int amount = stack.getAmount()-1;
|
||||
stack.destroy();
|
||||
if (amount == 0 && newEntity != null) {
|
||||
newEntity.remove();
|
||||
return null;
|
||||
}
|
||||
return createStack(newEntity, amount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user