More progress towards 1.13

This commit is contained in:
ZeroEpoch1969
2018-07-24 19:08:29 -07:00
parent 6275fd8bcb
commit 7170b1c999
29 changed files with 164 additions and 136 deletions

View File

@ -185,7 +185,7 @@ public class CageData
final Block block = center.getRelative(xOffset, yOffset, zOffset);
if (material != Material.SKULL)
if (material != Material.PLAYER_HEAD)
{
// Glowstone light
if (material != Material.GLASS && xOffset == 0 && yOffset == 2 && zOffset == 0)
@ -204,11 +204,11 @@ public class CageData
continue;
}
block.setType(Material.SKULL);
block.setType(Material.PLAYER_HEAD);
if (input != null)
{
Skull skull = (Skull) block.getState();
skull.setSkullType(SkullType.PLAYER);
// This may or may not work in future versions of spigot
skull.setOwner(input);
skull.update();
}