Update to 1.19.3, update DelayedExecutorService references.
This commit is contained in:
parent
8289bdecaf
commit
b45e9c3fec
6 changed files with 23 additions and 12 deletions
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.TimerTask;
|
||||
|
||||
import dev.zontreck.ariaslib.terminal.Task;
|
||||
import dev.zontreck.ariaslib.util.DelayedExecutorService;
|
||||
import dev.zontreck.libzontreck.chat.ChatColor;
|
||||
import dev.zontreck.libzontreck.chat.ChatColorFactory;
|
||||
|
@ -22,9 +23,13 @@ import net.minecraft.sounds.SoundEvents;
|
|||
import net.minecraft.world.entity.player.Inventory;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
public class CheckInventory implements Runnable {
|
||||
public class CheckInventory extends Task {
|
||||
private static final CheckInventory inst = new CheckInventory();
|
||||
|
||||
public CheckInventory() {
|
||||
super("checkinv", true);
|
||||
}
|
||||
|
||||
public static CheckInventory getInstance(){
|
||||
return inst;
|
||||
}
|
||||
|
|
|
@ -86,9 +86,8 @@ public class WatchMyDurability
|
|||
//LOGGER.info("HELLO FROM CLIENT SETUP");
|
||||
//LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
|
||||
WatchMyDurability.CurrentUser = Minecraft.getInstance().getUser();
|
||||
DelayedExecutorService.setup();
|
||||
|
||||
DelayedExecutorService.getInstance().schedule(CheckInventory.getInstance(),
|
||||
WMDClientConfig.TimerVal.get());
|
||||
|
||||
//time.schedule(new CheckInventory(),
|
||||
//WMDClientConfig.TimerVal.get()*1000,
|
||||
|
@ -109,6 +108,7 @@ public class WatchMyDurability
|
|||
//LOGGER.info("PLAYER LOGGED IN");
|
||||
LOGGER.info(WMDPrefix+": : : PLAYER LOGGED IN : : :");
|
||||
WatchMyDurability.isInGame=true;
|
||||
DelayedExecutorService.start();
|
||||
|
||||
DelayedExecutorService.getInstance().schedule(CheckInventory.getInstance(), WMDClientConfig.TimerVal.get());
|
||||
}
|
||||
|
@ -118,6 +118,7 @@ public class WatchMyDurability
|
|||
//LOGGER.info("PLAYER LOGGED OUT");
|
||||
LOGGER.info(WMDPrefix+": : : PLAYER LOGGED OUT : : :");
|
||||
WatchMyDurability.isInGame=false;
|
||||
DelayedExecutorService.stop();
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||
modLoader="javafml" #mandatory
|
||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||
loaderVersion="[45,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||
loaderVersion="[44,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||
license="GPL-v3"
|
||||
|
@ -55,7 +55,7 @@ Edit the config file to customize the alerts
|
|||
# Does this dependency have to exist - if not, ordering below must be specified
|
||||
mandatory=true #mandatory
|
||||
# The version range of the dependency
|
||||
versionRange="[45,)" #mandatory
|
||||
versionRange="[44,)" #mandatory
|
||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||
ordering="NONE"
|
||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||
|
@ -65,7 +65,7 @@ Edit the config file to customize the alerts
|
|||
modId="minecraft"
|
||||
mandatory=true
|
||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||
versionRange="[1.19.4,1.20)"
|
||||
versionRange="[1.19.3,1.20)"
|
||||
ordering="NONE"
|
||||
side="CLIENT"
|
||||
[[dependencies.watchmydurability]]
|
||||
|
|
Reference in a new issue