mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +01:00
Added getBlockReplacedState to BlockPlaceEvent, in case one wants to see what type of block was there previously.
By: VictorD <victor.danell@gmail.com>
This commit is contained in:
parent
d85ad792fb
commit
b50a636f98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user