File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/main/java/com/elmakers/mine/bukkit/arenas/dueling Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 44
55 - Fix inventory click errors in 1.14
66 - OP wand check will now allow cost-free wands
7+ - Fix leaderboards in modern spigot versions
78
89## 3.3
910
Original file line number Diff line number Diff line change @@ -1215,13 +1215,9 @@ public void updateLeaderboard() {
12151215 if (canReplace (leaderboardBlock )) {
12161216 skullMaterial .modify (leaderboardBlock );
12171217 BlockState blockState = leaderboardBlock .getState ();
1218- MaterialData data = blockState .getData ();
1219- if (data instanceof Skull ) {
1220- Skull skull = (Skull )data ;
1221- skull .setFacingDirection (skullFace );
1222- }
12231218 if (blockState instanceof org .bukkit .block .Skull ) {
12241219 org .bukkit .block .Skull skullBlock = (org .bukkit .block .Skull )blockState ;
1220+ skullBlock .setRotation (skullFace );
12251221 controller .getMagic ().setSkullOwner (skullBlock , player .getUUID ());
12261222 }
12271223 }
@@ -1233,6 +1229,7 @@ public void updateLeaderboard() {
12331229 if (data instanceof Sign ) {
12341230 Sign sign = (Sign )data ;
12351231 sign .setFacingDirection (leaderboardFacing );
1232+ blockState .setData (data );
12361233 }
12371234 if (blockState instanceof org .bukkit .block .Sign ) {
12381235 org .bukkit .block .Sign signBlock = (org .bukkit .block .Sign )blockState ;
You can’t perform that action at this time.
0 commit comments