mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-21 15:03:30 +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
|
||||
# Actually Additions
|
||||
|
||||
mod_version=1.2.5
|
||||
mod_version=1.2.6
|
||||
|
||||
# Forge
|
||||
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.block.entity.BlockEntity;
|
||||
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.neoforged.neoforge.capabilities.Capabilities;
|
||||
import net.neoforged.neoforge.items.IItemHandler;
|
||||
|
@ -126,7 +125,8 @@ public class TileEntityItemInterfaceHopping extends TileEntityItemInterface {
|
|||
}
|
||||
|
||||
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);
|
||||
if (this.level.isLoaded(toPos)) {
|
||||
|
|
|
@ -101,6 +101,7 @@ public abstract class TileEntityPhantomface extends TileEntityInventoryBase impl
|
|||
if (hasBoundPosition())
|
||||
serverLevel.registerCapabilityListener(boundPosition, capListener);
|
||||
}
|
||||
invalidateCapabilities();
|
||||
}
|
||||
|
||||
int strength = this.getComparatorStrength();
|
||||
|
|
Loading…
Reference in a new issue