This commit is contained in:
parent
b097bb7cd5
commit
401970963f
@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
**Beta 0.0.6**
|
||||
* Remove ``DamageSourceAccessor``
|
||||
|
||||
**Beta 0.0.5**
|
||||
* Improve Fabric JSON
|
||||
|
||||
|
@ -6,11 +6,11 @@ org.gradle.jvmargs = -Xmx1G
|
||||
minecraft_version = 1.16.2
|
||||
curseforge_id = 398250
|
||||
simple_minecraft_version = 1.16.2
|
||||
yarn_build = 1
|
||||
yarn_build = 6
|
||||
fabric_loader_version = 0.9.0+build.204
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 0.0.5
|
||||
mod_version = 0.0.6
|
||||
maven_group = com.thebrokenrail
|
||||
|
||||
# Dependencies
|
||||
|
@ -5,7 +5,6 @@ import com.thebrokenrail.energonrelics.api.energy.Action;
|
||||
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
||||
import com.thebrokenrail.energonrelics.EnergonRelics;
|
||||
import com.thebrokenrail.energonrelics.block.DefensiveLaserBlock;
|
||||
import com.thebrokenrail.energonrelics.mixin.DamageSourceAccessor;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.entity.BlockEntityType;
|
||||
import net.minecraft.entity.Entity;
|
||||
@ -180,7 +179,7 @@ public class DefensiveLaserBlockEntity extends EnergyReceiverBlockEntity {
|
||||
return new ItemEntity(getWorld(), posVec.getX(), posVec.getY(), posVec.getZ());
|
||||
}
|
||||
|
||||
private static final DamageSource DAMAGE_SOURCE = DamageSourceAccessor.createDamageSource(EnergonRelics.NAMESPACE + ".defensive_laser").setScaledWithDifficulty().setExplosive();
|
||||
private static final DamageSource DAMAGE_SOURCE = new DamageSource(EnergonRelics.NAMESPACE + ".defensive_laser").setScaledWithDifficulty().setExplosive();
|
||||
|
||||
private void fire(World world, BlockPos pos) {
|
||||
List<LivingEntity> entities = getEntities(entity -> true);
|
||||
|
@ -1,13 +0,0 @@
|
||||
package com.thebrokenrail.energonrelics.mixin;
|
||||
|
||||
import net.minecraft.entity.damage.DamageSource;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.gen.Invoker;
|
||||
|
||||
@Mixin(DamageSource.class)
|
||||
public interface DamageSourceAccessor {
|
||||
@Invoker
|
||||
static DamageSource createDamageSource(String name) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
accessWidener v1 named
|
||||
accessible method net/minecraft/entity/damage/DamageSource <init> (Ljava/lang/String;)V
|
||||
accessible method net/minecraft/server/command/TeleportCommand teleport (Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;DDDLjava/util/Set;FFLnet/minecraft/server/command/TeleportCommand$LookTarget;)V
|
@ -9,7 +9,6 @@
|
||||
],
|
||||
"mixins": [
|
||||
"BrewingRecipeRegistryAccessor",
|
||||
"DamageSourceAccessor",
|
||||
"MixinDefaultBiomeFeatures",
|
||||
"MixinEntity",
|
||||
"MixinLivingEntity",
|
||||
|
Reference in New Issue
Block a user