Skip to content
Browse files

Use actual data for skull blocks

  • Loading branch information...
1 parent 6c6f965 commit 8efb99566705584b7f4e6c51a8b6e3e783718dab @wizjany wizjany committed Mar 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/sk89q/worldedit/blocks/SkullBlock.java
View
4 src/main/java/com/sk89q/worldedit/blocks/SkullBlock.java
@@ -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 {
@@ -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;

0 comments on commit 8efb995

Please sign in to comment.
Something went wrong with that request. Please try again.