mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Bandaid on hopping item interface.
Fixed phantomface capability invalidation.
This commit is contained in:
parent
f471f4f1fa
commit
b8e284d947
3 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
# Actually Additions
|
# Actually Additions
|
||||||
|
|
||||||
mod_version=1.2.5
|
mod_version=1.2.6
|
||||||
|
|
||||||
# Forge
|
# Forge
|
||||||
game_version=1.20.4
|
game_version=1.20.4
|
||||||
|
|
|
@ -24,7 +24,6 @@ import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
import net.minecraft.world.level.block.entity.BlockEntity;
|
import net.minecraft.world.level.block.entity.BlockEntity;
|
||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
|
||||||
import net.minecraft.world.phys.AABB;
|
import net.minecraft.world.phys.AABB;
|
||||||
import net.neoforged.neoforge.capabilities.Capabilities;
|
import net.neoforged.neoforge.capabilities.Capabilities;
|
||||||
import net.neoforged.neoforge.items.IItemHandler;
|
import net.neoforged.neoforge.items.IItemHandler;
|
||||||
|
@ -126,7 +125,8 @@ public class TileEntityItemInterfaceHopping extends TileEntityItemInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockState state = this.level.getBlockState(this.getBlockPos());
|
BlockState state = this.level.getBlockState(this.getBlockPos());
|
||||||
Direction facing = state.getValue(BlockStateProperties.FACING);
|
//Direction facing = state.getValue(BlockStateProperties.FACING);
|
||||||
|
Direction facing = Direction.DOWN; //TODO temp, facing missing
|
||||||
|
|
||||||
BlockPos toPos = this.getBlockPos().relative(facing);
|
BlockPos toPos = this.getBlockPos().relative(facing);
|
||||||
if (this.level.isLoaded(toPos)) {
|
if (this.level.isLoaded(toPos)) {
|
||||||
|
|
|
@ -101,6 +101,7 @@ public abstract class TileEntityPhantomface extends TileEntityInventoryBase impl
|
||||||
if (hasBoundPosition())
|
if (hasBoundPosition())
|
||||||
serverLevel.registerCapabilityListener(boundPosition, capListener);
|
serverLevel.registerCapabilityListener(boundPosition, capListener);
|
||||||
}
|
}
|
||||||
|
invalidateCapabilities();
|
||||||
}
|
}
|
||||||
|
|
||||||
int strength = this.getComparatorStrength();
|
int strength = this.getComparatorStrength();
|
||||||
|
|
Loading…
Reference in a new issue