mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-24 16:18:33 +01:00
Fixed the drill breaking when out of energy, closes #1432
This commit is contained in:
parent
e9d917dc64
commit
b8575c4a67
3 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
# 1.3.9+mc1.21.1
|
# 1.3.9+mc1.21.1
|
||||||
* Change laser rendering to be compatible with Iris
|
* Change laser rendering to be compatible with Iris
|
||||||
* Fix machines in the Engineer House being obtainable when broken
|
* Fix machines in the Engineer House being obtainable when broken
|
||||||
|
* Fixed the drill breaking when out of energy.
|
||||||
|
|
||||||
# 1.3.8+mc1.21.1
|
# 1.3.8+mc1.21.1
|
||||||
* Lock the Immersive Engineering cloche compat recipes behind a mod loaded condition
|
* Lock the Immersive Engineering cloche compat recipes behind a mod loaded condition
|
||||||
|
|
|
@ -39,6 +39,7 @@ import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.Tiers;
|
import net.minecraft.world.item.Tiers;
|
||||||
import net.minecraft.world.item.component.ItemAttributeModifiers;
|
import net.minecraft.world.item.component.ItemAttributeModifiers;
|
||||||
import net.minecraft.world.item.component.ItemContainerContents;
|
import net.minecraft.world.item.component.ItemContainerContents;
|
||||||
|
import net.minecraft.world.item.component.Unbreakable;
|
||||||
import net.minecraft.world.item.context.UseOnContext;
|
import net.minecraft.world.item.context.UseOnContext;
|
||||||
import net.minecraft.world.item.enchantment.Enchantments;
|
import net.minecraft.world.item.enchantment.Enchantments;
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
|
@ -68,7 +69,6 @@ public class DrillItem extends ItemEnergy {
|
||||||
|
|
||||||
public DrillItem() {
|
public DrillItem() {
|
||||||
super(ActuallyItems.defaultProps()
|
super(ActuallyItems.defaultProps()
|
||||||
.durability(0)
|
|
||||||
.stacksTo(1)
|
.stacksTo(1)
|
||||||
.component(DataComponents.TOOL, Tiers.NETHERITE.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_DRILL))
|
.component(DataComponents.TOOL, Tiers.NETHERITE.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_DRILL))
|
||||||
, 250000, 1000);
|
, 250000, 1000);
|
||||||
|
|
|
@ -31,7 +31,6 @@ import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public abstract class ItemEnergy extends ItemBase {
|
public abstract class ItemEnergy extends ItemBase {
|
||||||
|
|
||||||
public final int maxPower;
|
public final int maxPower;
|
||||||
public final int transfer;
|
public final int transfer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue