From 03f6ee6c70fed8a109811ea1e7618668156f4c34 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Mar 2025 21:01:08 -0500 Subject: [PATCH] commented ready for 5 man weekends --- src/engine/objects/Mine.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index fe68430e..2c2bf625 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -18,6 +18,7 @@ import engine.math.Vector3fImmutable; import engine.net.ByteBufferWriter; import engine.net.client.msg.ErrorPopupMsg; import engine.server.MBServerStatics; +import org.joda.time.DateTime; import org.pmw.tinylog.Logger; import java.net.UnknownHostException; @@ -129,6 +130,20 @@ public class Mine extends AbstractGameObject { this.openHour = rs.getInt("mineLiveHour"); this.openMinute = rs.getInt("mineLiveMinute"); this.capSize = rs.getInt("capSize"); + + //uncomment this for weekend 5s in lieu of 3s + //int loggedCapSize = rs.getInt("capSize"); + //if(loggedCapSize == 3){ + // int dayOfWeek = DateTime.now().dayOfWeek().get(); + // if(dayOfWeek == 7 || dayOfWeek == 6 || dayOfWeek == 5){ + // this.capSize = 5; + // }else{ + // this.capSize = loggedCapSize; + // } + //}else{ + // this.capSize = loggedCapSize; + //} + this.liveTime = LocalDateTime.now().withHour(this.openHour).withMinute(this.openMinute); Building tower = BuildingManager.getBuildingFromCache(this.buildingID); if(tower != null){