Fix getBlockEntity args
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-09-13 21:40:44 +02:00
Ursprung 307fe08bd6
Commit 2213d44289

Datei anzeigen

@ -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)) {