Skip to content

Commit

Permalink
Remove unsed method
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAcPT committed Jul 21, 2018
1 parent e5ea465 commit 09f0135
Showing 1 changed file with 1 addition and 18 deletions.
@@ -1,27 +1,10 @@
From ecf75579dcfbec00461841c87f96091901fe65fb Mon Sep 17 00:00:00 2001
From 95e357f7dd549b278714a9ea76bf6d11d6c2b5fd Mon Sep 17 00:00:00 2001
From: NickAcPT <32451103+NickAcPT@users.noreply.github.com>
Date: Sat, 21 Jul 2018 01:30:30 +0100
Subject: [PATCH] Extend player profile API to support skin changes

Added code that refreshes the player's skin by sending packets with a special order, telling the client to respawn the player and re-apply the game profile

diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 210e3bc4..b0335684 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -101,6 +101,12 @@ public class CraftWorld implements World {
}
// Paper end

+ // Paper start - Provide dimension number of world
+ public int getDimension() {
+ return world.dimension;
+ }
+ // Paper end
+
private static final Random rand = new Random();

public CraftWorld(WorldServer world, ChunkGenerator gen, Environment env) {
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 6cbf429f..57f17120 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
Expand Down

0 comments on commit 09f0135

Please sign in to comment.