mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Fixed filling wand using wrong method.
This commit is contained in:
parent
cf8e56ab2a
commit
d1438dd67e
2 changed files with 4 additions and 5 deletions
|
@ -12,7 +12,6 @@ package de.ellpeck.actuallyadditions.mod.items;
|
|||
|
||||
import de.ellpeck.actuallyadditions.mod.items.base.ItemEnergy;
|
||||
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.WorldUtil;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.registries.BuiltInRegistries;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
|
@ -111,8 +110,8 @@ public class ItemFillingWand extends ItemEnergy {
|
|||
public void releaseUsing(ItemStack stack, Level world, LivingEntity entity, int timeLeft) {
|
||||
if (!world.isClientSide) {
|
||||
boolean clear = true;
|
||||
if (entity instanceof Player) {
|
||||
HitResult result = WorldUtil.getNearestBlockWithDefaultReachDistance(world, (Player) entity);
|
||||
if (entity instanceof Player player) {
|
||||
HitResult result = player.pick(8f, 1f, false);
|
||||
if (result instanceof BlockHitResult) {
|
||||
CompoundTag compound = stack.getOrCreateTag();
|
||||
|
||||
|
|
|
@ -314,8 +314,8 @@
|
|||
"item.actuallyadditions.drill_upgrade_fortune": "Drill Fortune Augment I (wip)",
|
||||
"item.actuallyadditions.drill_upgrade_fortune_ii": "Drill Fortune Augment II (Gives Fortune III!) (wip)",
|
||||
"item.actuallyadditions.drill_upgrade_block_placing": "Drill Block Placing Augment (wip)",
|
||||
"item.actuallyadditions.drill_upgrade_three_by_three": "Drill Mining Augment I (wip)",
|
||||
"item.actuallyadditions.drill_upgrade_five_by_five": "Drill Mining Augment II (wip)",
|
||||
"item.actuallyadditions.drill_upgrade_three_by_three": "Drill Area Augment I (wip)",
|
||||
"item.actuallyadditions.drill_upgrade_five_by_five": "Drill Area Augment II (wip)",
|
||||
"item.actuallyadditions.dough": "Dough (wip)",
|
||||
"item.actuallyadditions.black_quartz": "Black Quartz",
|
||||
"item.actuallyadditions.ring": "Ring",
|
||||
|
|
Loading…
Reference in a new issue