From c215047c00f89b89d1a8240102c9463fe57427b7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 20:00:23 -0500 Subject: [PATCH] teleport method removed form PLayerCharacter to use AbstractCharacter.teleport instead --- src/engine/objects/PlayerCharacter.java | 38 ------------------------- 1 file changed, 38 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 32a536bc..b99f5e62 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -120,7 +120,6 @@ public class PlayerCharacter extends AbstractCharacter { protected ArrayList runes; private BaseClass baseClass; private PromotionClass promotionClass; - private long channelMute = 0; // none muted. private ConcurrentHashMap ignoredPlayerIDs = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW); private boolean lfGroup = false; private boolean lfGuild = false; @@ -5433,14 +5432,6 @@ public class PlayerCharacter extends AbstractCharacter { return characterHeight; } - public void setCharacterHeight(float characterHeight) { - this.characterHeight = characterHeight; - } - - public void setCenterHeight(float centerHeight) { - this.centerHeight = centerHeight; - } - public boolean isEnteredWorld() { return enteredWorld; } @@ -5449,39 +5440,10 @@ public class PlayerCharacter extends AbstractCharacter { this.enteredWorld = enteredWorld; } - public long getChannelMute() { - return channelMute; - } - - public void setChannelMute(long channelMute) { - this.channelMute = channelMute; - } - public boolean isLastSwimming() { return lastSwimming; } - public boolean isTeleporting() { - return isTeleporting; - } - - public void setTeleporting(boolean isTeleporting) { - this.isTeleporting = isTeleporting; - } - - @Override - public final void teleport(final Vector3fImmutable targetLoc) { - - locationLock.writeLock().lock(); - - try { - MovementManager.translocate(this, targetLoc); - } catch (Exception e) { - Logger.error(e); - } finally { - locationLock.writeLock().unlock(); - } - } public ReadWriteLock getTeleportLock() { return teleportLock;