Lang files

This commit is contained in:
paulevsGitch 2020-10-22 23:00:44 +03:00
parent 11a0d52061
commit 2f67212725
3 changed files with 11 additions and 4 deletions

View file

@ -21,6 +21,7 @@ import net.minecraft.world.WorldAccess;
import ru.betterend.blocks.BlockBlueVine; import ru.betterend.blocks.BlockBlueVine;
import ru.betterend.blocks.basis.BlockDoublePlant; import ru.betterend.blocks.basis.BlockDoublePlant;
import ru.betterend.blocks.basis.BlockGlowingFur; import ru.betterend.blocks.basis.BlockGlowingFur;
import ru.betterend.registry.BlockRegistry;
import ru.betterend.registry.BlockTagRegistry; import ru.betterend.registry.BlockTagRegistry;
public class BlocksHelper { public class BlocksHelper {
@ -193,14 +194,15 @@ public class BlocksHelper {
else if (!state.canPlaceAt(world, POS)) { else if (!state.canPlaceAt(world, POS)) {
// Blue Vine // Blue Vine
if (state.getBlock() instanceof BlockBlueVine) { if (state.getBlock() instanceof BlockBlueVine) {
while (!state.canPlaceAt(world, POS)) { while (state.isOf(BlockRegistry.BLUE_VINE) || state.isOf(BlockRegistry.BLUE_VINE_LANTERN) || state.isOf(BlockRegistry.BLUE_VINE_FUR)) {
BlocksHelper.setWithoutUpdate(world, POS, AIR); BlocksHelper.setWithoutUpdate(world, POS, AIR);
for (Direction dir : HORIZONTAL) { for (Direction dir : HORIZONTAL) {
BlockPos p = POS.offset(dir).up(); BlockPos p = POS.offset(dir);
state = world.getBlockState(p); state = world.getBlockState(p);
if (state.getBlock() instanceof BlockGlowingFur) { if (state.getBlock() instanceof BlockGlowingFur) {
BlocksHelper.setWithoutUpdate(world, p, AIR); BlocksHelper.setWithoutUpdate(world, p, AIR);
} }
world.getBlockTickScheduler().schedule(p, world.getBlockState(p).getBlock(), 0);
} }
POS.setY(POS.getY() + 1); POS.setY(POS.getY() + 1);
state = world.getBlockState(POS); state = world.getBlockState(POS);

View file

@ -184,5 +184,6 @@
"block.betterend.end_lotus_trapdoor": "End Lotus Trapdoor", "block.betterend.end_lotus_trapdoor": "End Lotus Trapdoor",
"block.betterend.flavolite_runed": "Runed Flavolite", "block.betterend.flavolite_runed": "Runed Flavolite",
"block.betterend.flavolite_runed_eternal": "Eternal Runed Flavolite" "block.betterend.flavolite_runed_eternal": "Eternal Runed Flavolite",
"block.betterend.end_portal_block": "End Portal"
} }

View file

@ -181,5 +181,9 @@
"block.betterend.end_lotus_stairs": "Ступени из лотоса края", "block.betterend.end_lotus_stairs": "Ступени из лотоса края",
"block.betterend.end_lotus_stripped_bark": "Обтёсанная кора лотоса края", "block.betterend.end_lotus_stripped_bark": "Обтёсанная кора лотоса края",
"block.betterend.end_lotus_stripped_log": "Обтёсанное бревно лотоса края", "block.betterend.end_lotus_stripped_log": "Обтёсанное бревно лотоса края",
"block.betterend.end_lotus_trapdoor": "Люк из лотоса края" "block.betterend.end_lotus_trapdoor": "Люк из лотоса края",
"block.betterend.flavolite_runed": "Рунный флаволит",
"block.betterend.flavolite_runed_eternal": "Вечный рунный флаволит",
"block.betterend.end_portal_block": "Портал Края"
} }