Jump to content

[1.5.2] SoulShards 1.27 fix for using shards on vanilla spawners


Recommended Posts

Posted

http://j-a-k-j.com/ItemShard.class

In your 1.27 zip file, replace /com/shadowdrgn/soulshards/ItemShard.class with that.

I added this:

import net.minecraft.tileentity.MobSpawnerBaseLogic;


 

Then I changed this:

 


try {

  f = tems.getClass().getDeclaredFields()[1];

  f.setAccessible(true);

  m = (String)f.get(tems);

}


 

To this:

 


try {

  f = tems.getClass().getDeclaredFields()[0];

  f.setAccessible(true);

  MobSpawnerBaseLogic l = (MobSpawnerBaseLogic)f.get(tems);

  f = MobSpawnerBaseLogic.class.getDeclaredFields()[1];

  f.setAccessible(true);

  m = (String)f.get(l);

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...