Fixed runtime crashes
This commit is contained in:
parent
770f12ee20
commit
2aa6243f40
5 changed files with 17 additions and 14 deletions
|
@ -1,7 +1,5 @@
|
||||||
package ru.betterend.blocks;
|
package ru.betterend.blocks;
|
||||||
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import net.fabricmc.api.EnvType;
|
import net.fabricmc.api.EnvType;
|
||||||
import net.fabricmc.api.Environment;
|
import net.fabricmc.api.Environment;
|
||||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||||
|
@ -19,6 +17,8 @@ import net.minecraft.world.phys.shapes.CollisionContext;
|
||||||
import net.minecraft.world.phys.shapes.VoxelShape;
|
import net.minecraft.world.phys.shapes.VoxelShape;
|
||||||
import ru.betterend.blocks.basis.EndUnderwaterPlantBlock;
|
import ru.betterend.blocks.basis.EndUnderwaterPlantBlock;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
public class BubbleCoralBlock extends EndUnderwaterPlantBlock {
|
public class BubbleCoralBlock extends EndUnderwaterPlantBlock {
|
||||||
|
|
||||||
private static final VoxelShape SHAPE = Block.box(0, 0, 0, 16, 14, 16);
|
private static final VoxelShape SHAPE = Block.box(0, 0, 0, 16, 14, 16);
|
||||||
|
|
|
@ -148,8 +148,9 @@ public class EndStoneSmelter extends BaseBlockWithEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockEntityType<T> blockEntityType) {
|
public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockState blockState, BlockEntityType<T> blockEntityType) {
|
||||||
return level.isClientSide() ? null : createTickerHelper(blockEntityType, EndBlockEntities.END_STONE_SMELTER, EndStoneSmelterBlockEntity::tick);
|
return level.isClientSide() ? null : createTickerHelper(blockEntityType, EndBlockEntities.END_STONE_SMELTER, EndStoneSmelterBlockEntity::tick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -432,8 +432,9 @@ public class PedestalBlock extends BaseBlockNotFull implements EntityBlock {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockEntityType<T> blockEntityType) {
|
public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockState blockState, BlockEntityType<T> blockEntityType) {
|
||||||
return level.isClientSide() ? null : createTickerHelper(blockEntityType, EndBlockEntities.PEDESTAL, PedestalBlockEntity::tick);
|
return level.isClientSide() ? null : createTickerHelper(blockEntityType, EndBlockEntities.PEDESTAL, PedestalBlockEntity::tick);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,23 +2,23 @@
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "ru.betterend.mixin.client",
|
"package": "ru.betterend.mixin.client",
|
||||||
"compatibilityLevel": "JAVA_8",
|
"compatibilityLevel": "JAVA_16",
|
||||||
"client": [
|
"client": [
|
||||||
"AbstractSoundInstanceAccessor",
|
"AbstractSoundInstanceAccessor",
|
||||||
"ClientPlayNetworkHandlerMixin",
|
"ClientPlayNetworkHandlerMixin",
|
||||||
"HumanoidMobRendererMixin",
|
"HumanoidMobRendererMixin",
|
||||||
"ArmorStandRendererMixin",
|
"ArmorStandRendererMixin",
|
||||||
"ClientRecipeBookMixin",
|
"ClientRecipeBookMixin",
|
||||||
"MinecraftClientMixin",
|
"MinecraftClientMixin",
|
||||||
"PlayerRendererMixin",
|
"PlayerRendererMixin",
|
||||||
"WorldRendererMixin",
|
"WorldRendererMixin",
|
||||||
"MusicTrackerMixin",
|
"MusicTrackerMixin",
|
||||||
"AnvilScreenMixin",
|
"AnvilScreenMixin",
|
||||||
"BiomeColorsMixin",
|
"BiomeColorsMixin",
|
||||||
"ModelLoaderMixin",
|
"ModelLoaderMixin",
|
||||||
"LocalPlayerMixin",
|
"LocalPlayerMixin",
|
||||||
"CapeLayerMixin",
|
"CapeLayerMixin",
|
||||||
"ItemStackMixin"
|
"ItemStackMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "ru.betterend.mixin.common",
|
"package": "ru.betterend.mixin.common",
|
||||||
"compatibilityLevel": "JAVA_8",
|
"compatibilityLevel": "JAVA_16",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"BiomeGenerationSettingsAccessor",
|
"BiomeGenerationSettingsAccessor",
|
||||||
"NoiseBasedChunkGeneratorMixin",
|
"NoiseBasedChunkGeneratorMixin",
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
"CraftingMenuMixin",
|
"CraftingMenuMixin",
|
||||||
"LivingEntityMixin",
|
"LivingEntityMixin",
|
||||||
"ServerPlayerMixin",
|
"ServerPlayerMixin",
|
||||||
"SpikeFeatureMixin",
|
"SpikeFeatureMixin",
|
||||||
"ServerLevelMixin",
|
"ServerLevelMixin",
|
||||||
"PlayerListMixin",
|
"PlayerListMixin",
|
||||||
"AnvilMenuMixin",
|
"AnvilMenuMixin",
|
||||||
|
@ -31,7 +31,8 @@
|
||||||
"MonsterMixin",
|
"MonsterMixin",
|
||||||
"EntityMixin",
|
"EntityMixin",
|
||||||
"PlayerMixin",
|
"PlayerMixin",
|
||||||
"SlimeMixin"
|
"SlimeMixin",
|
||||||
|
"ShuffelingListMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue