mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Cast numbers
This commit is contained in:
parent
a4e175f656
commit
f99d7168bb
@ -28,7 +28,7 @@ public class RoomVisitsComposer extends MessageComposer {
|
|||||||
|
|
||||||
Calendar cal = Calendar.getInstance(TimeZone.getDefault());
|
Calendar cal = Calendar.getInstance(TimeZone.getDefault());
|
||||||
for (ModToolRoomVisit visit : this.roomVisits) {
|
for (ModToolRoomVisit visit : this.roomVisits) {
|
||||||
cal.setTimeInMillis(visit.timestamp * 1000);
|
cal.setTimeInMillis(visit.timestamp * 1000L);
|
||||||
this.response.appendInt(visit.roomId);
|
this.response.appendInt(visit.roomId);
|
||||||
this.response.appendString(visit.roomName);
|
this.response.appendString(visit.roomName);
|
||||||
this.response.appendInt(cal.get(Calendar.HOUR));
|
this.response.appendInt(cal.get(Calendar.HOUR));
|
||||||
|
@ -24,7 +24,7 @@ public class PetInfoMessageComposer extends MessageComposer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ServerMessage composeInternal() {
|
protected ServerMessage composeInternal() {
|
||||||
double days = Math.floor((Emulator.getIntUnixTimestamp() - this.pet.getCreated()) / (3600 * 24));
|
double days = Math.floor((Emulator.getIntUnixTimestamp() - this.pet.getCreated()) / (3600.0 * 24));
|
||||||
this.response.init(Outgoing.PetInfoMessageComposer);
|
this.response.init(Outgoing.PetInfoMessageComposer);
|
||||||
this.response.appendInt(this.pet.getId());
|
this.response.appendInt(this.pet.getId());
|
||||||
this.response.appendString(this.pet.getName());
|
this.response.appendString(this.pet.getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user