0.0.6
All checks were successful
EnergonRelics/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-08-12 16:52:09 -04:00
parent b097bb7cd5
commit 401970963f
6 changed files with 7 additions and 18 deletions

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
**Beta 0.0.6**
* Remove ``DamageSourceAccessor``
**Beta 0.0.5** **Beta 0.0.5**
* Improve Fabric JSON * Improve Fabric JSON

View File

@ -6,11 +6,11 @@ org.gradle.jvmargs = -Xmx1G
minecraft_version = 1.16.2 minecraft_version = 1.16.2
curseforge_id = 398250 curseforge_id = 398250
simple_minecraft_version = 1.16.2 simple_minecraft_version = 1.16.2
yarn_build = 1 yarn_build = 6
fabric_loader_version = 0.9.0+build.204 fabric_loader_version = 0.9.0+build.204
# Mod Properties # Mod Properties
mod_version = 0.0.5 mod_version = 0.0.6
maven_group = com.thebrokenrail maven_group = com.thebrokenrail
# Dependencies # Dependencies

View File

@ -5,7 +5,6 @@ import com.thebrokenrail.energonrelics.api.energy.Action;
import com.thebrokenrail.energonrelics.config.HardcodedConfig; import com.thebrokenrail.energonrelics.config.HardcodedConfig;
import com.thebrokenrail.energonrelics.EnergonRelics; import com.thebrokenrail.energonrelics.EnergonRelics;
import com.thebrokenrail.energonrelics.block.DefensiveLaserBlock; import com.thebrokenrail.energonrelics.block.DefensiveLaserBlock;
import com.thebrokenrail.energonrelics.mixin.DamageSourceAccessor;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntityType; import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
@ -180,7 +179,7 @@ public class DefensiveLaserBlockEntity extends EnergyReceiverBlockEntity {
return new ItemEntity(getWorld(), posVec.getX(), posVec.getY(), posVec.getZ()); 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) { private void fire(World world, BlockPos pos) {
List<LivingEntity> entities = getEntities(entity -> true); List<LivingEntity> entities = getEntities(entity -> true);

View File

@ -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();
}
}

View File

@ -1,2 +1,3 @@
accessWidener v1 named 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 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

View File

@ -9,7 +9,6 @@
], ],
"mixins": [ "mixins": [
"BrewingRecipeRegistryAccessor", "BrewingRecipeRegistryAccessor",
"DamageSourceAccessor",
"MixinDefaultBiomeFeatures", "MixinDefaultBiomeFeatures",
"MixinEntity", "MixinEntity",
"MixinLivingEntity", "MixinLivingEntity",