mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 02:25:31 +01:00
Fix entity spawning on paper
This commit is contained in:
parent
ab0490d31a
commit
59c2d186cd
@ -196,7 +196,7 @@ public class EntityStackImpl implements EntityStack {
|
||||
@Override
|
||||
public synchronized LivingEntity takeOneAndSpawnEntity(Location location) {
|
||||
if (amount <= 0) return null;
|
||||
LivingEntity entity = Objects.requireNonNull(location.getWorld()).spawn(location, hostEntity.getClass());
|
||||
LivingEntity entity = (LivingEntity) Objects.requireNonNull(location.getWorld()).spawnEntity(location, hostEntity.getType());
|
||||
if (Settings.NO_AI.getBoolean()) {
|
||||
EntityUtils.setUnaware(entity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user