8000 There's no need to have this static · CommandAPI/CommandAPI@6e003bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e003bc

Browse files
committed
There's no need to have this static
1 parent a41e73a commit 6e003bc

File tree

1 file changed

+1
-5
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-nms-common/src/main/java/dev/jorel/commandapi/nms

1 file changed

+1
-5
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-nms/commandapi-bukkit-nms-common/src/main/java/dev/jorel/commandapi/nms/NMS_Common.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import dev.jorel.commandapi.commandsenders.BukkitCommandSender;
3333
import dev.jorel.commandapi.wrappers.Location2D;
3434
import dev.jorel.commandapi.wrappers.MathOperation;
35-
import dev.jorel.commandapi.wrappers.Rotation;
3635
import net.minecraft.commands.CommandBuildContext;
3736
import net.minecraft.commands.CommandSourceStack;
3837
import net.minecraft.commands.arguments.AngleArgument;
@@ -71,7 +70,6 @@
7170
import net.minecraft.resources.ResourceLocation;
7271
import net.minecraft.server.level.ColumnPos;
7372
import net.minecraft.world.level.block.state.pattern.BlockInWorld;
74-
import net.minecraft.world.phys.Vec2;
7573
import net.minecraft.world.phys.Vec3;
7674
import org.bukkit.Axis;
7775
import org.bukkit.Bukkit;
@@ -85,8 +83,6 @@
8583
import org.bukkit.entity.EntityType;
8684
import org.bukkit.entity.Player;
8785
import org.bukkit.potion.PotionEffectType;
88-
import org.bukkit.scoreboard.Objective;
89-
import org.bukkit.scoreboard.Team;
9086

9187
import java.io.File;
9288
import java.io.IOException;
@@ -110,7 +106,7 @@
110106
*/
111107
public abstract class NMS_Common extends CommandAPIBukkit<CommandSourceStack> {
112108

113-
protected static NamespacedKey fromResourceLocation(ResourceLocation key) {
109+
public final NamespacedKey fromResourceLocation(ResourceLocation key) {
114110
return NamespacedKey.fromString(key.getNamespace() + ":" + key.getPath());
115111
}
116112

0 commit comments

Comments
 (0)
0