Fixed limit zone entry.

This commit is contained in:
MobiusDevelopment
2021-04-28 21:10:32 +00:00
parent 48c5bb5809
commit c0acb794c4
6 changed files with 8 additions and 8 deletions

View File

@@ -99,7 +99,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }

View File

@@ -103,7 +103,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME_WEEKLY; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME_WEEKLY;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }
@@ -111,7 +111,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }

View File

@@ -103,7 +103,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME_WEEKLY; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME_WEEKLY;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }
@@ -111,7 +111,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }

View File

@@ -96,7 +96,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }

View File

@@ -101,7 +101,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }

View File

@@ -101,7 +101,7 @@ public class ExTimedHuntingZoneEnter implements IClientIncomingPacket
{ {
if (endTime == currentTime) if (endTime == currentTime)
{ {
endTime = Config.TIME_LIMITED_ZONE_INITIAL_TIME; endTime += Config.TIME_LIMITED_ZONE_INITIAL_TIME;
player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime); player.getVariables().set(PlayerVariables.HUNTING_ZONE_ENTRY + _zoneId, currentTime);
} }
} }