fixed mixin warnings
This commit is contained in:
parent
e660810c73
commit
67aec1a731
@ -10,6 +10,7 @@ import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
@ -23,7 +24,9 @@ import java.util.function.Predicate;
|
||||
|
||||
@Mixin(Inventory.class)
|
||||
public class MixinInventory {
|
||||
@Shadow Player player;
|
||||
@Final
|
||||
@Shadow
|
||||
public Player player;
|
||||
|
||||
@Inject(
|
||||
method = "add(ILnet/minecraft/world/item/ItemStack;)Z",
|
||||
|
@ -15,8 +15,6 @@ import ru.dbotthepony.mc.otm.config.ServerConfig;
|
||||
import ru.dbotthepony.mc.otm.core.util.ExperienceUtilsKt;
|
||||
import ru.dbotthepony.mc.otm.registry.MItems;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
@Mixin(LivingEntity.class)
|
||||
public class MixinLivingEntity {
|
||||
@ -38,7 +36,8 @@ public class MixinLivingEntity {
|
||||
}
|
||||
}
|
||||
|
||||
@Shadow Player lastHurtByPlayer;
|
||||
@Shadow
|
||||
protected Player lastHurtByPlayer;
|
||||
|
||||
@Inject(
|
||||
method = "dropExperience()V",
|
||||
|
Loading…
Reference in New Issue
Block a user