mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix WiredEffectChangeFurniDirection Delay.
This commit is contained in:
parent
65d0b6566e
commit
68e55c5a09
@ -94,7 +94,7 @@ public class WiredEffectChangeFurniDirection extends InteractionWiredEffect {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getWiredData() {
|
public String getWiredData() {
|
||||||
StringBuilder data = new StringBuilder(this.startRotation.getValue() + "\t" + this.rotateAction + "\t" + this.items.size());
|
StringBuilder data = new StringBuilder(this.getDelay() + this.startRotation.getValue() + "\t" + this.rotateAction + "\t" + this.items.size());
|
||||||
|
|
||||||
for (Map.Entry<HabboItem, RoomUserRotation> entry : this.items.entrySet()) {
|
for (Map.Entry<HabboItem, RoomUserRotation> entry : this.items.entrySet()) {
|
||||||
data.append("\t").append(entry.getKey().getId()).append(":").append(entry.getValue().getValue());
|
data.append("\t").append(entry.getKey().getId()).append(":").append(entry.getValue().getValue());
|
||||||
@ -107,6 +107,9 @@ public class WiredEffectChangeFurniDirection extends InteractionWiredEffect {
|
|||||||
public void loadWiredData(ResultSet set, Room room) throws SQLException {
|
public void loadWiredData(ResultSet set, Room room) throws SQLException {
|
||||||
String[] data = set.getString("wired_data").split("\t");
|
String[] data = set.getString("wired_data").split("\t");
|
||||||
|
|
||||||
|
if (data.length >= 1) {
|
||||||
|
this.setDelay(Integer.valueOf(data[0]));
|
||||||
|
}
|
||||||
if (data.length >= 3) {
|
if (data.length >= 3) {
|
||||||
this.startRotation = RoomUserRotation.fromValue(Integer.valueOf(data[0]));
|
this.startRotation = RoomUserRotation.fromValue(Integer.valueOf(data[0]));
|
||||||
this.rotateAction = Integer.valueOf(data[1]);
|
this.rotateAction = Integer.valueOf(data[1]);
|
||||||
@ -178,6 +181,7 @@ public class WiredEffectChangeFurniDirection extends InteractionWiredEffect {
|
|||||||
this.items.put(item, this.startRotation);
|
this.items.put(item, this.startRotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.setDelay(packet.readInt());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user