Skip to content

Commit

Permalink
Use actual data for skull blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
wizjany committed Mar 10, 2013
1 parent 6c6f965 commit 8efb995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/sk89q/worldedit/blocks/SkullBlock.java
Expand Up @@ -66,7 +66,7 @@ public SkullBlock(int data, byte type) {
* @param rot rotation (if on floor)
*/
public SkullBlock(int data, byte type, byte rot) {
super(BlockID.HEAD, 1);
super(BlockID.HEAD, data);
if (type < (byte) 0 || type > (byte) 4) {
this.skullType = (byte) 0;
} else {
Expand All @@ -84,7 +84,7 @@ public SkullBlock(int data, byte type, byte rot) {
* @param owner name of player
*/
public SkullBlock(int data, byte rot, String owner) {
super(BlockID.HEAD, 1);
super(BlockID.HEAD, data);
this.rot = rot;
this.setOwner(owner);
if (owner == null || owner.isEmpty()) this.skullType = (byte) 0;
Expand Down

0 comments on commit 8efb995

Please sign in to comment.