mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-30 14:03:23 +01:00
fixed issue with reflection
This commit is contained in:
parent
001184deb5
commit
89aa8ad27f
@ -34,9 +34,9 @@ public class AnvilView extends ContainerAnvil implements CustomAnvil {
|
|||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
mc_ContainerAnvil_repairInventory = ContainerAnvil.class.getDeclaredField("h");
|
mc_ContainerAnvil_repairInventory = ContainerAnvil.class.getDeclaredField("repairInventory");
|
||||||
mc_ContainerAnvil_repairInventory.setAccessible(true);
|
mc_ContainerAnvil_repairInventory.setAccessible(true);
|
||||||
mc_ContainerAnvil_resultInventory = ContainerAnvil.class.getDeclaredField("g");
|
mc_ContainerAnvil_resultInventory = ContainerAnvil.class.getDeclaredField("resultInventory");
|
||||||
mc_ContainerAnvil_resultInventory.setAccessible(true);
|
mc_ContainerAnvil_resultInventory.setAccessible(true);
|
||||||
mc_ContainerAnvil_bukkitEntity = ContainerAnvil.class.getDeclaredField("bukkitEntity");
|
mc_ContainerAnvil_bukkitEntity = ContainerAnvil.class.getDeclaredField("bukkitEntity");
|
||||||
mc_ContainerAnvil_bukkitEntity.setAccessible(true);
|
mc_ContainerAnvil_bukkitEntity.setAccessible(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user