mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Fix MysqlDataTruncation in HabboItem
This commit is contained in:
parent
381f62eb63
commit
8d63982a28
@ -245,7 +245,7 @@ public abstract class HabboItem implements Runnable, IEventTriggers {
|
||||
statement.setString(3, this.wallPosition);
|
||||
statement.setInt(4, this.x);
|
||||
statement.setInt(5, this.y);
|
||||
statement.setDouble(6, this.z);
|
||||
statement.setDouble(6, Math.round(this.z * Math.pow(10, 6)) / Math.pow(10, 6));
|
||||
statement.setInt(7, this.rotation);
|
||||
statement.setString(8, this instanceof InteractionGuildGate ? "" : this.getDatabaseExtraData());
|
||||
statement.setString(9, this.limitedStack + ":" + this.limitedSells);
|
||||
|
Loading…
Reference in New Issue
Block a user