mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-29 07:37:46 +02:00
Increase death animation ticks
This commit is contained in:
parent
9bbe9ae3c4
commit
54a66f33f3
@ -305,7 +305,7 @@ public class EventListen implements Listener {
|
|||||||
int delay = npc.data().get(NPC.RESPAWN_DELAY_METADATA, -1);
|
int delay = npc.data().get(NPC.RESPAWN_DELAY_METADATA, -1);
|
||||||
if (delay < 0)
|
if (delay < 0)
|
||||||
return;
|
return;
|
||||||
int deathAnimationTicks = event.getEntity() instanceof LivingEntity ? 10 : 2;
|
int deathAnimationTicks = event.getEntity() instanceof LivingEntity ? 20 : 2;
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
|
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user