Fix: NPE when moving non-saved-survival-state
This commit is contained in:
parent
acbe6838b7
commit
ed809b5b18
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class DBModel {
|
||||||
q.delete(to.getLocation());
|
q.delete(to.getLocation());
|
||||||
q.move(from.getLocation(), to.getLocation());
|
q.move(from.getLocation(), to.getLocation());
|
||||||
HasBlockState metaBlock = getMetaBlock(from);
|
HasBlockState metaBlock = getMetaBlock(from);
|
||||||
if (metaBlock.set) {
|
if (metaBlock.set && metaBlock.state != null) {
|
||||||
BlockState state = metaBlock.state;
|
BlockState state = metaBlock.state;
|
||||||
state.setLocation(to.getLocation());
|
state.setLocation(to.getLocation());
|
||||||
setMetaBlock(to, getMetaBlock(from).state);
|
setMetaBlock(to, getMetaBlock(from).state);
|
||||||
|
|
Loading…
Reference in a new issue