Fix pasting nbt on the same block with combine-stages disabled

This commit is contained in:
Jesse Boyd 2017-07-24 13:16:03 +10:00
parent 58d7a330a0
commit 5caeed19a1
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -63,13 +63,16 @@ public class HistoryExtent extends AbstractDelegateExtent {
int id = (combined >> 4); int id = (combined >> 4);
if (id == block.getId()) { if (id == block.getId()) {
if (!FaweCache.hasData(id)) { if (!FaweCache.hasData(id)) {
if (!block.hasNbtData()) {
return false; return false;
} }
} else if (!block.hasNbtData()) {
int data = combined & 0xF; int data = combined & 0xF;
if (data == block.getData()) { if (data == block.getData()) {
return false; return false;
} }
} }
}
try { try {
if (!FaweCache.hasNBT(id)) { if (!FaweCache.hasNBT(id)) {
if (block.canStoreNBTData()) { if (block.canStoreNBTData()) {