Fix invalid side on several events
This commit is contained in:
parent
32ca414de0
commit
08b458281b
3 changed files with 6 additions and 18 deletions
|
@ -49,7 +49,7 @@ mod_name=Aria's Essentials
|
||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=GPLv3
|
mod_license=GPLv3
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
mod_version=1.1.122123.1048
|
mod_version=1.1.122123.1110
|
||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||||
# This should match the base package used for the mod sources.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
package dev.zontreck.essentials;
|
package dev.zontreck.essentials;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.nio.file.Files;
|
|
||||||
import java.nio.file.Path;
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -17,17 +14,12 @@ import dev.zontreck.essentials.configs.AEServerConfig;
|
||||||
import dev.zontreck.essentials.events.TeleportEvent;
|
import dev.zontreck.essentials.events.TeleportEvent;
|
||||||
import dev.zontreck.essentials.gui.HeartsRenderer;
|
import dev.zontreck.essentials.gui.HeartsRenderer;
|
||||||
import dev.zontreck.essentials.networking.ModMessages;
|
import dev.zontreck.essentials.networking.ModMessages;
|
||||||
import dev.zontreck.essentials.networking.S2CUpdateHearts;
|
|
||||||
import dev.zontreck.essentials.rtp.RTPCachesEventHandlers;
|
import dev.zontreck.essentials.rtp.RTPCachesEventHandlers;
|
||||||
import dev.zontreck.essentials.rtp.RandomPositionFactory;
|
|
||||||
import dev.zontreck.essentials.util.BackPositionCaches;
|
import dev.zontreck.essentials.util.BackPositionCaches;
|
||||||
import dev.zontreck.libzontreck.events.RegisterPacketsEvent;
|
|
||||||
import dev.zontreck.libzontreck.vectors.WorldPosition;
|
import dev.zontreck.libzontreck.vectors.WorldPosition;
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.server.level.ServerLevel;
|
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import net.minecraft.world.entity.player.Player;
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
import net.minecraftforge.client.event.InputEvent;
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||||
import net.minecraftforge.client.event.RegisterKeyMappingsEvent;
|
import net.minecraftforge.client.event.RegisterKeyMappingsEvent;
|
||||||
import net.minecraftforge.event.entity.living.LivingDeathEvent;
|
import net.minecraftforge.event.entity.living.LivingDeathEvent;
|
||||||
import net.minecraftforge.eventbus.api.EventPriority;
|
import net.minecraftforge.eventbus.api.EventPriority;
|
||||||
|
@ -39,12 +31,8 @@ import com.mojang.logging.LogUtils;
|
||||||
|
|
||||||
import dev.zontreck.essentials.commands.CommandRegister;
|
import dev.zontreck.essentials.commands.CommandRegister;
|
||||||
import dev.zontreck.essentials.homes.Homes;
|
import dev.zontreck.essentials.homes.Homes;
|
||||||
import dev.zontreck.essentials.homes.HomesProvider;
|
|
||||||
import dev.zontreck.essentials.util.EssentialsDatastore;
|
import dev.zontreck.essentials.util.EssentialsDatastore;
|
||||||
import dev.zontreck.essentials.util.ForgeEventsHandler;
|
import dev.zontreck.essentials.util.ForgeEventsHandler;
|
||||||
import dev.zontreck.libzontreck.events.ProfileLoadedEvent;
|
|
||||||
import dev.zontreck.libzontreck.events.ProfileUnloadedEvent;
|
|
||||||
import dev.zontreck.libzontreck.profiles.Profile;
|
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.server.ServerStartedEvent;
|
import net.minecraftforge.event.server.ServerStartedEvent;
|
||||||
import net.minecraftforge.event.server.ServerStoppingEvent;
|
import net.minecraftforge.event.server.ServerStoppingEvent;
|
||||||
|
@ -138,6 +126,7 @@ public class AriasEssentials {
|
||||||
MinecraftForge.EVENT_BUS.register(new HeartsRenderer());
|
MinecraftForge.EVENT_BUS.register(new HeartsRenderer());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@OnlyIn(Dist.CLIENT)
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onRegisterKeyBinds(RegisterKeyMappingsEvent ev)
|
public static void onRegisterKeyBinds(RegisterKeyMappingsEvent ev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,16 +4,15 @@ import dev.zontreck.essentials.AriasEssentials;
|
||||||
import dev.zontreck.essentials.Messages;
|
import dev.zontreck.essentials.Messages;
|
||||||
import dev.zontreck.libzontreck.util.ChatHelpers;
|
import dev.zontreck.libzontreck.util.ChatHelpers;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.world.entity.player.Player;
|
|
||||||
import net.minecraft.world.phys.Vec3;
|
|
||||||
import net.minecraftforge.api.distmarker.Dist;
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||||
import net.minecraftforge.client.event.InputEvent;
|
import net.minecraftforge.client.event.InputEvent;
|
||||||
import net.minecraftforge.client.event.RegisterKeyMappingsEvent;
|
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
|
||||||
|
@OnlyIn(Dist.CLIENT)
|
||||||
@Mod.EventBusSubscriber(modid = AriasEssentials.MODID, value = Dist.CLIENT)
|
@Mod.EventBusSubscriber(modid = AriasEssentials.MODID, value = Dist.CLIENT)
|
||||||
public class AutoWalk {
|
public class AutoWalk {
|
||||||
private static boolean isWalking = false;
|
private static boolean isWalking = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue