Skip to content

Commit

Permalink
Removed unused shit
Browse files Browse the repository at this point in the history
  • Loading branch information
StunfMC committed Aug 24, 2024
1 parent 35e76fc commit e6719c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/nexia/core/games/util/LobbyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,20 @@ public static void returnToLobby(NexiaPlayer player, boolean tp) {

public static void giveItems(NexiaPlayer player) {

NBTObject hideAttrubtesNBTObject = NBTObject.create();
hideAttrubtesNBTObject.set("HideFlags", NBTValue.of(39));
NBTObject hideAttributesNBTObject = NBTObject.create();
hideAttributesNBTObject.set("HideFlags", NBTValue.of(39));

NBTObject unbreakableNBTObject = hideAttrubtesNBTObject.copy();
NBTObject unbreakableNBTObject = hideAttributesNBTObject.copy();
unbreakableNBTObject.set("Unbreakable", NBTValue.of(1));

com.nexia.nexus.api.world.item.ItemStack compass = com.nexia.nexus.api.world.item.ItemStack.create(Minecraft.Item.COMPASS);
compass.setItemNBT(hideAttrubtesNBTObject.copy());
compass.setItemNBT(hideAttributesNBTObject.copy());
compass.setLore(Component.text("Right click to open the gamemode selector menu.", ChatFormat.Minecraft.gray).decoration(ChatFormat.italic, false));
compass.setDisplayName(Component.text("Gamemode Selector", ChatFormat.Minecraft.yellow).decoration(ChatFormat.italic, false));


com.nexia.nexus.api.world.item.ItemStack nameTag = com.nexia.nexus.api.world.item.ItemStack.create(Minecraft.Item.NAME_TAG);
nameTag.setItemNBT(hideAttrubtesNBTObject.copy());
nameTag.setItemNBT(hideAttributesNBTObject.copy());
nameTag.setLore(Component.text("Right click to open the prefix selector menu.", ChatFormat.Minecraft.gray).decoration(ChatFormat.italic, false));
nameTag.setDisplayName(Component.text("Prefix Selector", ChatFormat.Minecraft.yellow).decoration(ChatFormat.italic, false));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public void registerListener() {

if(gameMode == PlayerGameMode.SKYWARS) {
SkywarsGame.death(nexiaPlayer, playerDeathEvent);
return;
}

if(gameMode == PlayerGameMode.LOBBY && duelsData.gameOptions != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
public class PlayerDropItemListener {
public void registerListener(){
PlayerHotbarDropItemEvent.BACKEND.register(playerDropItemEvent -> {

NexiaPlayer player = new NexiaPlayer(playerDropItemEvent.getPlayer());

if (!EventUtil.dropItem(player, playerDropItemEvent.getItemStack())) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package com.nexia.core.mixin.entity;

import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.projectile.AbstractArrow;
import net.minecraft.world.entity.projectile.ThrownTrident;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.EnchantmentHelper;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(ThrownTrident.class)
public abstract class ThrownTridentMixin extends AbstractArrow {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
package com.nexia.core.mixin.player;

import com.llamalad7.mixinextras.sugar.Local;
import com.mojang.authlib.GameProfile;
import com.nexia.base.player.NexiaPlayer;
import com.nexia.base.player.PlayerDataManager;
import com.nexia.core.NexiaCore;
import com.nexia.core.games.util.LobbyUtil;
import com.nexia.core.utilities.chat.ChatFormat;
import com.nexia.core.utilities.chat.PlayerMutes;
import com.nexia.core.utilities.player.BanHandler;
import com.nexia.core.utilities.player.CorePlayerData;
import com.nexia.core.utilities.time.ServerTime;
import com.nexia.discord.NexiaDiscord;
import com.nexia.ffa.FfaUtil;
import com.nexia.minigames.games.bedwars.players.BwPlayerEvents;
import com.nexia.minigames.games.bedwars.util.BwUtil;
import com.nexia.minigames.games.skywars.SkywarsGame;
import com.nexia.nexus.api.world.World;
import com.nexia.nexus.api.world.types.Minecraft;
import com.nexia.nexus.builder.implementation.util.ObjectMappings;
import de.themoep.minedown.adventure.MineDown;
import net.minecraft.ChatFormatting;
Expand Down

0 comments on commit e6719c6

Please sign in to comment.