I found it!!!!!

This commit is contained in:
Andrew-71 2023-05-10 22:20:35 +03:00
parent 024d00049e
commit 7fe9425c7b
8 changed files with 10 additions and 10 deletions

View file

@ -85,8 +85,8 @@
}
},
{
"from": [15, 17, -13],
"to": [15, 30, -3],
"from": [16, 17, -13],
"to": [16, 30, -3],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 0]},
"faces": {
"north": {"uv": [10, 0, 12.5, 3.25], "texture": "#0"},

View file

@ -228,8 +228,8 @@
}
},
{
"from": [15, 17, -13],
"to": [15, 30, -3],
"from": [16, 17, -13],
"to": [16, 30, -3],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 0]},
"faces": {
"north": {"uv": [10, 0, 12.5, 3.25], "texture": "#0"},

View file

@ -33,6 +33,7 @@ import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import su.a71.tardim_ic.tardim_ic.digital_interface.DigitalInterfaceBlock;
import su.a71.tardim_ic.tardim_ic.digital_interface.DigitalInterfacePeripheralProvider;
import su.a71.tardim_ic.tardim_ic.digital_interface.DigitalInterfaceTileEntity;
import su.a71.tardim_ic.tardim_ic.redstone_input.RedstoneInputBlock;
import su.a71.tardim_ic.tardim_ic.redstone_input.RedstoneInputTileEntity;
import su.a71.tardim_ic.tardim_ic.Constants;
@ -57,10 +58,10 @@ public class Registration {
FabricBlockEntityTypeBuilder.create(RedstoneInputTileEntity::new, REDSTONE_TARDIM_INPUT).build()
);
public static final BlockEntityType<RedstoneInputTileEntity> DIGITAL_TARDIM_INTERFACE_TILEENTITY = Registry.register(
public static final BlockEntityType<DigitalInterfaceTileEntity> DIGITAL_TARDIM_INTERFACE_TILEENTITY = Registry.register(
Registry.BLOCK_ENTITY_TYPE,
new ResourceLocation("tardim_ic", "digital_tardim_interface"),
FabricBlockEntityTypeBuilder.create(RedstoneInputTileEntity::new, DIGITAL_TARDIM_INTERFACE).build()
FabricBlockEntityTypeBuilder.create(DigitalInterfaceTileEntity::new, DIGITAL_TARDIM_INTERFACE).build()
);
private static final CreativeModeTab TARDIM_IC_TAB = FabricItemGroupBuilder

View file

@ -107,7 +107,6 @@ public class DigitalInterfacePeripheral implements IPeripheral {
* This is mostly a copy of getIDForXZ function with some added checks
*
* @return TardimData of the TARDIM that the peripheral is in
* @throws LuaException if the peripheral is not in a TARDIM
* @hidden
*/
public TardimData getTardimDataInitial() {

View file

@ -12,6 +12,7 @@ public class DigitalInterfacePeripheralProvider implements IPeripheralProvider {
@NotNull
@Override
public IPeripheral getPeripheral(@NotNull Level level, @NotNull BlockPos blockPos, @NotNull Direction direction) {
if (level.isClientSide()) return null; // Please...?
if (level.getBlockState(blockPos).getBlock() instanceof DigitalInterfaceBlock) {
return new DigitalInterfacePeripheral(new FakeDigitalInterfaceTileEntity(blockPos, level));
}

View file

@ -107,7 +107,6 @@ public class DigitalInterfacePeripheral implements IPeripheral {
* This is mostly a copy of getIDForXZ function with some added checks
*
* @return TardimData of the TARDIM that the peripheral is in
* @throws LuaException if the peripheral is not in a TARDIM
* @hidden
*/
public TardimData getTardimDataInitial() {

View file

@ -5,7 +5,7 @@ license = "MIT"
[[mods]] #mandatory
# The modid of the mod
modId = "tardim_ic" #mandatory
version = "1.0" #mandatory
version = "1.1" #mandatory
# A display name for the mod
displayName = "TARDIM: In Control" #mandatory
# The description text for the mod (multi line!) (#mandatory)

View file

@ -1,5 +1,5 @@
# Project
version=1.0
version=1.1
group=su.a71.tardim_ic
# Common