This commit is contained in:
ZeroEpoch1969
2018-12-29 12:41:48 -07:00
parent 7a43f991e3
commit 72db71b3cf
16 changed files with 187 additions and 61 deletions

View File

@ -206,10 +206,16 @@ public class CageData
block.setType(Material.PLAYER_HEAD);
if (input != null)
{
Skull skull = (Skull)block.getState();
// This may or may not work in future versions of spigot
skull.setOwner(input);
skull.update();
try
{
Skull skull = (Skull)block.getState();
// This may or may not work in future versions of spigot
skull.setOwner(input);
skull.update();
}
catch (ClassCastException e)
{
}
}
}
}