geforkt von Mirrors/AxiomPaperPlugin
Dieser Commit ist enthalten in:
Ursprung
307fe08bd6
Commit
2213d44289
@ -109,7 +109,7 @@ public class ChunkSectionModifier {
|
||||
private static final Reflection.Method<EntityBlock, BlockEntity> newBlockEntity = Reflection.getTypedMethod(EntityBlock.class, BlockEntity.class, BlockPos.class, BlockState.class);
|
||||
private static final Reflection.Method<LevelChunk, Void> addAndRegisterBlockEntity = Reflection.getMethod(LevelChunk.class, BlockEntity.class);
|
||||
private void setBlockEntity(BlockState state, BlockPos pos) {
|
||||
BlockEntity blockEntity = getBlockEntity.invoke(chunk, pos, LevelChunk.EntityCreationType.CHECK);
|
||||
BlockEntity blockEntity = getBlockEntity.invoke(chunk, pos);
|
||||
|
||||
if (blockEntity != null) {
|
||||
if (isValid.invoke(getType.invoke(blockEntity), state)) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren