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.entity.Entity;
|
||||||
import net.minecraft.world.level.Level;
|
import net.minecraft.world.level.Level;
|
||||||
import net.minecraft.world.level.block.SoundType;
|
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.Material;
|
||||||
import net.minecraft.world.level.material.MaterialColor;
|
import net.minecraft.world.level.material.MaterialColor;
|
||||||
import ru.bclib.blocks.BaseBlock;
|
import ru.bclib.blocks.BaseBlock;
|
||||||
|
@ -26,5 +27,5 @@ public class HydraluxPetalBlock extends BaseBlock {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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
|
@Override
|
||||||
|
public void setLevel(Level world) {
|
||||||
|
if (hasRitual()) {
|
||||||
|
linkedRitual.setWorld(world);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setLevelAndPosition(Level world, BlockPos pos) {
|
public void setLevelAndPosition(Level world, BlockPos pos) {
|
||||||
super.setLevelAndPosition(world, pos);
|
|
||||||
if (hasRitual()) {
|
if (hasRitual()) {
|
||||||
linkedRitual.setWorld(world);
|
linkedRitual.setWorld(world);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package ru.betterend.entity.model;
|
package ru.betterend.entity.render;
|
||||||
|
|
||||||
import com.mojang.blaze3d.vertex.PoseStack;
|
import com.mojang.blaze3d.vertex.PoseStack;
|
||||||
import com.mojang.blaze3d.vertex.VertexConsumer;
|
import com.mojang.blaze3d.vertex.VertexConsumer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue