mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-23 10:35:22 +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
|
@Override
|
||||||
public synchronized LivingEntity takeOneAndSpawnEntity(Location location) {
|
public synchronized LivingEntity takeOneAndSpawnEntity(Location location) {
|
||||||
if (amount <= 0) return null;
|
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()) {
|
if (Settings.NO_AI.getBoolean()) {
|
||||||
EntityUtils.setUnaware(entity);
|
EntityUtils.setUnaware(entity);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user