diff --git a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java index 9f70019d2f..64e2682643 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftChunk.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftChunk.java @@ -199,6 +199,18 @@ public class CraftChunk implements Chunk { return getWorld().getPluginChunkTickets(getX(), getZ()); } + @Override + public long getInhabitedTime() { + return getHandle().q(); + } + + @Override + public void setInhabitedTime(long ticks) { + Preconditions.checkArgument(ticks >= 0, "ticks cannot be negative"); + + getHandle().b(ticks); + } + @Override public ChunkSnapshot getChunkSnapshot() { return getChunkSnapshot(true, false, false);