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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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