finish MCAWriter

This commit is contained in:
Jesse Boyd
2019-04-10 22:04:22 +10:00
parent 808d32bc85
commit e03a43a1ab
5 changed files with 65 additions and 47 deletions

View File

@ -39,7 +39,7 @@ public class AsyncBlockState implements BlockState {
}
public int getTypeId() {
return combinedId & BlockTypes.BIT_MASK;
return BlockTypes.getFromStateId(combinedId).getInternalId();
}
public int getPropertyId() {
@ -160,7 +160,7 @@ public class AsyncBlockState implements BlockState {
@Override
public void setRawData(byte data) {
this.combinedId = (combinedId & BlockTypes.BIT_MASK) + (data << BlockTypes.BIT_OFFSET);
this.combinedId = getTypeId() + (data << BlockTypes.BIT_OFFSET);
this.blockData = BukkitAdapter.getBlockData(this.combinedId);
}