Skip to content

Commit

Permalink
shiny cleany cleany
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Nov 24, 2023
1 parent 92707ea commit 9f28fcc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ && canDestroyBlock(state)) {
ItemStack stack = getStack();
stack.hurt(1, level().random, null);
setStack(stack);
// FIXME maybe register custom damage source? - IThundxr
//fixme maybe register custom damage source? - IThundxr
hit.hurt(level().damageSources().indirectMagic(this, this),
(float) manager.getValue(Attributes.ATTACK_DAMAGE));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ public final void register(ZRegister event) {
enabledStatusChanged(true, this.enabled);
}

@SuppressWarnings("unchecked")
public void enabledStatusChanged(boolean firstLoad, boolean newStatus) {
ConfiguredFeature<TreeConfiguration, ?> configured = null;
try {
// Complains about unchecked casts but... it works :)
configured = (ConfiguredFeature<TreeConfiguration, ?>) RegistryAccessUtil.getRegistryAccess()
.registryOrThrow(Registries.CONFIGURED_FEATURE).getOrThrow(TreeFeatures.AZALEA_TREE);
} catch(IllegalStateException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

@Mixin(LivingEntity.class)
public interface AccessorLivingEntity {
//fixme
// @Invoker("createLootContext")
// LootContext.Builder quark$createLootContext(boolean playerLoot, DamageSource source);

@Accessor("lastHurtByPlayerTime")
int quark$lastHurtByPlayerTime();

Expand Down
1 change: 0 additions & 1 deletion src/main/resources/META-INF/accesstransformer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public net.minecraft.world.entity.animal.TropicalFish m_30064_(I)I # getPatternV
public net.minecraft.world.item.context.BlockPlaceContext f_43628_ # replaceClicked
public net.minecraft.client.gui.Gui f_279580_ # GUI_ICONS_LOCATION
public net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase f_283893_ # mapColor
protected net.minecraft.world.level.block.CropBlock m_7959_()Lnet/minecraft/world/level/block/state/properties/IntegerProperty; # getAgeProperty TODO fix me beautiful
public net.minecraft.data.worldgen.biome.OverworldBiomes m_264144_(ZFFLnet/minecraft/world/level/biome/MobSpawnSettings$Builder;Lnet/minecraft/world/level/biome/BiomeGenerationSettings$Builder;Lnet/minecraft/sounds/Music;)Lnet/minecraft/world/level/biome/Biome; # biome
public-f net.minecraft.advancements.critereon.ItemUsedOnLocationTrigger$TriggerInstance f_285570_ # location
public-f net.minecraft.advancements.critereon.ContextAwarePredicate f_285622_ # conditions
Expand Down

0 comments on commit 9f28fcc

Please sign in to comment.