Minor fixes
This commit is contained in:
parent
e5bf933758
commit
fd062bf9a9
3 changed files with 9 additions and 3 deletions
|
@ -6,6 +6,7 @@ import net.minecraft.core.BlockPos;
|
|||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.block.SoundType;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.material.Material;
|
||||
import net.minecraft.world.level.material.MaterialColor;
|
||||
import ru.bclib.blocks.BaseBlock;
|
||||
|
@ -26,5 +27,5 @@ public class HydraluxPetalBlock extends BaseBlock {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void fallOn(Level world, BlockPos pos, Entity entity, float distance) {}
|
||||
public void fallOn(Level level, BlockState blockState, BlockPos blockPos, Entity entity, float f) {}
|
||||
}
|
||||
|
|
|
@ -27,8 +27,13 @@ public class EternalPedestalEntity extends PedestalBlockEntity {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void setLevel(Level world) {
|
||||
if (hasRitual()) {
|
||||
linkedRitual.setWorld(world);
|
||||
}
|
||||
}
|
||||
|
||||
public void setLevelAndPosition(Level world, BlockPos pos) {
|
||||
super.setLevelAndPosition(world, pos);
|
||||
if (hasRitual()) {
|
||||
linkedRitual.setWorld(world);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue