remove unessecary player sync
This commit is contained in:
@@ -5223,11 +5223,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
this.clearClientEffects();
|
|
||||||
}catch(Exception ignored){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
@@ -5239,17 +5234,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
Logger.error("UPDATE ISSUE: " + e);
|
Logger.error("UPDATE ISSUE: " + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearClientEffects(){
|
|
||||||
if(this.bonuses != null) {
|
|
||||||
if (!bonuses.getBool(ModType.Stunned, SourceType.None)) {
|
|
||||||
this.removeEffectBySource(EffectSourceType.Stun, 40, true);
|
|
||||||
}
|
|
||||||
if(!this.bonuses.getBool(Enum.ModType.CannotMove,Enum.SourceType.None)){
|
|
||||||
this.removeEffectBySource(EffectSourceType.Root,40,true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public static void unboxPlayer(PlayerCharacter player){
|
public static void unboxPlayer(PlayerCharacter player){
|
||||||
String machineID = player.getClientConnection().machineID;
|
String machineID = player.getClientConnection().machineID;
|
||||||
ArrayList<PlayerCharacter> sameMachine = new ArrayList<>();
|
ArrayList<PlayerCharacter> sameMachine = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user