mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Update TalismanListener.java
This commit is contained in:
parent
3471932050
commit
17e0d0ef1a
@ -320,9 +320,8 @@ public class TalismanListener implements Listener {
|
|||||||
ItemStack talisman = Talisman.tryActivateAndGet(e, SlimefunItems.TALISMAN_RESURRECTED);
|
ItemStack talisman = Talisman.tryActivateAndGet(e, SlimefunItems.TALISMAN_RESURRECTED);
|
||||||
|
|
||||||
if (dmgCause == DamageCause.VOID && talisman != null) {
|
if (dmgCause == DamageCause.VOID && talisman != null) {
|
||||||
SlimefunPlugin.runSync(() -> {
|
// This event is cancelled by the Talisman, so they don't actually die, we just teleport them after 2 ticks.
|
||||||
PaperLib.teleportAsync(player, getSafeRespawnLocation(talisman, player));
|
SlimefunPlugin.runSync(() -> PaperLib.teleportAsync(player, getSafeRespawnLocation(talisman, player)), 2);
|
||||||
}, 2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user