geforkt von Mirrors/FastAsyncWorldEdit
fix: Ensure BaseBlock is not returned when a BlockState is wanted in BlockTransformExtent (#2161
- NBT will be handled appropriately at another point - Fixes #2085
Dieser Commit ist enthalten in:
Ursprung
e4158ac084
Commit
5cd9616507
@ -555,10 +555,11 @@ public class BlockTransformExtent extends ResettableExtent {
|
|||||||
|
|
||||||
int transformedId = transformState(state, transform);
|
int transformedId = transformState(state, transform);
|
||||||
BlockState transformed = BlockState.getFromInternalId(transformedId);
|
BlockState transformed = BlockState.getFromInternalId(transformedId);
|
||||||
if (block.hasNbtData()) {
|
boolean baseBlock = block instanceof BaseBlock;
|
||||||
|
if (baseBlock && block.hasNbtData()) {
|
||||||
return (B) transformBaseBlockNBT(transformed, block.getNbtData(), transform);
|
return (B) transformBaseBlockNBT(transformed, block.getNbtData(), transform);
|
||||||
}
|
}
|
||||||
return (B) (block instanceof BaseBlock ? transformed.toBaseBlock() : transformed);
|
return (B) (baseBlock? transformed.toBaseBlock() : transformed);
|
||||||
//FAWE end
|
//FAWE end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren