File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
src/main/java/de/pfannekuchen/lotas/dropmanipulation/drops/entitydrops Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1212import net .minecraft .resources .ResourceLocation ;
1313import net .minecraft .world .entity .Entity ;
1414import net .minecraft .world .entity .monster .Husk ;
15- import net .minecraft .world .entity .monster .PigZombie ;
1615import net .minecraft .world .entity .monster .Zombie ;
1716import net .minecraft .world .entity .monster .ZombieVillager ;
1817import net .minecraft .world .item .ItemStack ;
@@ -58,7 +57,12 @@ public List<ItemStack> redirectDrops(BlockState block) {
5857 @ Override
5958 public List <ItemStack > redirectDrops (Entity entity , int lootingBonus ) {
6059 List <ItemStack > list = new ArrayList <>();
61- if (entity instanceof Zombie && !(entity instanceof PigZombie )) {
60+ if (entity instanceof Zombie &&
61+ //#if MC>=11600
62+ //$$ !(entity instanceof net.minecraft.world.entity.monster.ZombifiedPiglin)) {
63+ //#else
64+ !(entity instanceof net .minecraft .world .entity .monster .PigZombie )) {
65+ //#endif
6266 list .add (new ItemStack (Items .ROTTEN_FLESH , 2 +lootingBonus ));
6367
6468 if (dropIron .isToggled ())
Original file line number Diff line number Diff line change 11sourceCompatibility = 1.8
22targetCompatibility = 1.8
33
4- version = " 2.0.3 "
4+ version = " 2.0.4 "
55group = " de.pfannekuchen.lotas"
66archivesBaseName = " lotas"
77
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ apply plugin: 'org.spongepowered.mixin'
1515sourceCompatibility = 1.8
1616targetCompatibility = 1.8
1717
18- version = " 2.0.3 "
18+ version = " 2.0.4 "
1919group= " de.pfannekuchen.lotas"
2020archivesBaseName = " LoTAS"
2121
You can’t perform that action at this time.
0 commit comments