Fix Bow Recording.java
Dieser Commit ist enthalten in:
Ursprung
186b896bf6
Commit
a364f86d1f
@ -384,6 +384,6 @@ public class Config {
|
|||||||
return ArenaMode.Test.contains(mode);
|
return ArenaMode.Test.contains(mode);
|
||||||
}
|
}
|
||||||
public static boolean recording(){
|
public static boolean recording(){
|
||||||
return mode == ArenaMode.EVENT;
|
return true;//mode == ArenaMode.EVENT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ public class Recording implements Listener {
|
|||||||
despawnTNT();
|
despawnTNT();
|
||||||
}
|
}
|
||||||
}.register();
|
}.register();
|
||||||
new StateDependent(Config.recording(), FightState.All) {
|
new StateDependent(Config.recording(), FightState.Ingame) {
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void enable() {
|
||||||
ProtocolLibrary.getProtocolManager().addPacketListener(BOW_PACKET_PROCESSOR);
|
ProtocolLibrary.getProtocolManager().addPacketListener(BOW_PACKET_PROCESSOR);
|
||||||
@ -157,15 +157,14 @@ public class Recording implements Listener {
|
|||||||
if(e.getEntityType() != EntityType.PLAYER)
|
if(e.getEntityType() != EntityType.PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(e.getCause() == EntityDamageEvent.DamageCause.FIRE_TICK || e.getCause() == EntityDamageEvent.DamageCause.FIRE)
|
|
||||||
RecordSystem.setOnFire(e.getEntity(), false);
|
|
||||||
|
|
||||||
|
|
||||||
Player p = (Player) e.getEntity();
|
Player p = (Player) e.getEntity();
|
||||||
if(isNotSent(p))
|
if(isNotSent(p))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RecordSystem.damageAnimation(p);
|
RecordSystem.damageAnimation(p);
|
||||||
|
|
||||||
|
if(e.getCause() == EntityDamageEvent.DamageCause.FIRE_TICK || e.getCause() == EntityDamageEvent.DamageCause.FIRE)
|
||||||
|
RecordSystem.setOnFire(p, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
@ -173,7 +172,11 @@ public class Recording implements Listener {
|
|||||||
if(e.getEntityType() != EntityType.PLAYER)
|
if(e.getEntityType() != EntityType.PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RecordSystem.setOnFire(e.getEntity(), false);
|
Player p = (Player) e.getEntity();
|
||||||
|
if(isNotSent(p))
|
||||||
|
return;
|
||||||
|
|
||||||
|
RecordSystem.setOnFire(p, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren