Jump to content

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


jakj
 Share

Recommended Posts

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);

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...