Reset WorldObject position upon decay.
This commit is contained in:
parent
d970536adc
commit
ea7c46f6e8
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -66,7 +66,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
@ -63,7 +63,7 @@ public abstract class WorldObject extends ListenersContainer implements IIdentif
|
|||||||
/** Y coordinate */
|
/** Y coordinate */
|
||||||
private volatile int _y = 0;
|
private volatile int _y = 0;
|
||||||
/** Z coordinate */
|
/** Z coordinate */
|
||||||
private volatile int _z = 0;
|
private volatile int _z = -10000;
|
||||||
/** Orientation */
|
/** Orientation */
|
||||||
private volatile int _heading = 0;
|
private volatile int _heading = 0;
|
||||||
/** Instance id of object. 0 - Global */
|
/** Instance id of object. 0 - Global */
|
||||||
|
@ -45,6 +45,7 @@ public class DecayTaskManager
|
|||||||
final Creature creature = entry.getKey();
|
final Creature creature = entry.getKey();
|
||||||
DECAY_SCHEDULES.remove(creature);
|
DECAY_SCHEDULES.remove(creature);
|
||||||
creature.onDecay();
|
creature.onDecay();
|
||||||
|
creature.setXYZ(0, 0, -10000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0, 1000);
|
}, 0, 1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user