Browse Source

temporary enchant timers

lakebane
FatBoy-DOTC 2 days ago
parent
commit
f2d9eb003c
  1. 8
      src/engine/objects/Effect.java

8
src/engine/objects/Effect.java

@ -326,6 +326,10 @@ public class Effect { @@ -326,6 +326,10 @@ public class Effect {
writer.putString(item.getName());
writer.putFloat(-1000f);
} else {
if(true){
serializeForClientMsg(writer);
return;
}
float duration = this.jc.timeToExecutionLeft() / 1000;
writer.putInt(this.eb.getToken());
writer.putInt(aej.getTrains());
@ -338,6 +342,10 @@ public class Effect { @@ -338,6 +342,10 @@ public class Effect {
}
public void serializeForClientMsg(ByteBufferWriter writer) {
if(true){
serializeForLoad(writer);
return;
}
AbstractJob aj = this.jc.getJob();
if (aj == null || (!(aj instanceof AbstractEffectJob))) {
//TODO put error message here

Loading…
Cancel
Save