Use BlockData for DEditPlayer#poke()

This commit is contained in:
Daniel Saukel 2018-07-29 18:54:46 +02:00
parent 0797b899b0
commit 17912a27a0
1 changed files with 2 additions and 5 deletions

View File

@ -73,7 +73,7 @@ public class DEditPlayer extends DInstancePlayer {
}
/**
* @param player the represented Player
* @param player the represented Player
* @param editWorld the player's EditWorld
*/
public static void create(Player player, DEditWorld editWorld) {
@ -144,10 +144,7 @@ public class DEditPlayer extends DInstancePlayer {
MessageUtil.sendMessage(getPlayer(), DMessage.PLAYER_SIGN_COPIED.getMessage());
}
} else {
String info = "" + block.getType();
if (block.getData() != 0) {
info = info + "," + block.getData();
}
String info = block.getBlockData().getAsString();
MessageUtil.sendMessage(getPlayer(), DMessage.PLAYER_BLOCK_INFO.getMessage(info));
}
}