package com.voxelwind.server.network.mcpe.packets;

import com.voxelwind.server.network.NetworkPackage;
import io.netty.buffer.ByteBuf;
import lombok.Data;

@Data
public class McpeSetTime implements NetworkPackage {
    private long time;
    private boolean running;

    @Override
    public void decode(ByteBuf buffer) {
        time = buffer.readLong();
        running = buffer.readBoolean();
    }

    @Override
    public void encode(ByteBuf buffer) {
        buffer.writeLong(time);
        buffer.writeBoolean(running);
    }
}

@@ -225,12 +225,11 @@
 ate 
-long
+int
  tim
@@ -342,20 +342,19 @@
 fer.read
-Long
+Int
 ();%0A    
@@ -475,12 +475,11 @@
 rite
-Long
+Int
 (tim

Fix McpeSetTime