Fix BlockEntity#remove spigot mapping (#2264)

Fix spigot mapping
This commit is contained in:
EpicPlayerA10
2023-06-04 15:14:50 +02:00
committed by GitHub
parent b7dc5f7ae5
commit 97d4244126

View File

@ -184,7 +184,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
removeBlockEntityTicker.setAccessible(true);
methodremoveTickingBlockEntity = lookup.unreflect(removeBlockEntityTicker);
fieldRemove = BlockEntity.class.getDeclaredField(Refraction.pickName("remove", "p"));
fieldRemove = BlockEntity.class.getDeclaredField(Refraction.pickName("remove", "q"));
fieldRemove.setAccessible(true);
CHUNKSECTION_BASE = unsafe.arrayBaseOffset(LevelChunkSection[].class);