Minor fixes

This commit is contained in:
Frank Bauer 2021-06-24 09:19:46 +02:00
parent e5bf933758
commit fd062bf9a9
3 changed files with 9 additions and 3 deletions

View file

@ -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) {}
}

View file

@ -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);
}

View file

@ -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.VertexConsumer;