Added getBlockReplacedState to BlockPlaceEvent, in case one wants to see what type of block was there previously.

This commit is contained in:
VictorD
2011-01-24 23:22:28 +01:00
parent 0675ead169
commit 3477a86995
2 changed files with 11 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ public class CraftBlockState implements BlockState {
private void createData(final byte data) {
Material mat = Material.getMaterial(type);
if (mat == null) {
if (mat == null || mat.getData() == null) {
this.data = new MaterialData(type, data);
} else {
this.data = mat.getNewData(data);