mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Use actual data for skull blocks
This commit is contained in:
parent
6c6f965ac7
commit
8efb995667
@ -66,7 +66,7 @@ public class SkullBlock extends BaseBlock implements TileEntityBlock {
|
|||||||
* @param rot rotation (if on floor)
|
* @param rot rotation (if on floor)
|
||||||
*/
|
*/
|
||||||
public SkullBlock(int data, byte type, byte rot) {
|
public SkullBlock(int data, byte type, byte rot) {
|
||||||
super(BlockID.HEAD, 1);
|
super(BlockID.HEAD, data);
|
||||||
if (type < (byte) 0 || type > (byte) 4) {
|
if (type < (byte) 0 || type > (byte) 4) {
|
||||||
this.skullType = (byte) 0;
|
this.skullType = (byte) 0;
|
||||||
} else {
|
} else {
|
||||||
@ -84,7 +84,7 @@ public class SkullBlock extends BaseBlock implements TileEntityBlock {
|
|||||||
* @param owner name of player
|
* @param owner name of player
|
||||||
*/
|
*/
|
||||||
public SkullBlock(int data, byte rot, String owner) {
|
public SkullBlock(int data, byte rot, String owner) {
|
||||||
super(BlockID.HEAD, 1);
|
super(BlockID.HEAD, data);
|
||||||
this.rot = rot;
|
this.rot = rot;
|
||||||
this.setOwner(owner);
|
this.setOwner(owner);
|
||||||
if (owner == null || owner.isEmpty()) this.skullType = (byte) 0;
|
if (owner == null || owner.isEmpty()) this.skullType = (byte) 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user