Skip to content

Commit

Permalink
Fix no deathmessage if player is killed by charged respawn anchor aft…
Browse files Browse the repository at this point in the history
…er player joining server
  • Loading branch information
Dreeam-qwq committed Jan 26, 2024
1 parent d7594bd commit a084f63
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public void onInteract(PlayerInteractEvent e) {
} else if (DeathMessages.majorVersion() >= 16) {
if (!getBlock.getWorld().getEnvironment().equals(World.Environment.NETHER)) {
if (getBlock.getType().equals(Material.RESPAWN_ANCHOR)) {
RespawnAnchor anchor = (RespawnAnchor) getBlock.getBlockData();
if (anchor.getCharges() != anchor.getMaximumCharges() && !e.getPlayer().getInventory().getItemInMainHand().getType().equals(Material.GLOWSTONE))
return;
List<UUID> effected = new ArrayList<>();
for (Player p : e.getClickedBlock().getWorld().getPlayers()) {
Optional<PlayerManager> getPlayer = PlayerManager.getPlayer(p);
Expand Down

0 comments on commit a084f63

Please sign in to comment.