Use BlockState for player inventory getBlock

This commit is contained in:
Jesse Boyd
2018-08-13 03:31:26 +10:00
parent 6f04022738
commit 7fb3899bb7
5 changed files with 5 additions and 6 deletions

View File

@ -149,7 +149,7 @@ public class SnapshotRestore {
// Now just copy blocks!
for (Vector pos : entry.getValue()) {
try {
BaseBlock block = chunk.getBlock(pos);
BlockState block = chunk.getBlock(pos);
editSession.setBlock(pos, block);
} catch (DataException e) {
// this is a workaround: just ignore for now