Try fixing it
This commit is contained in:
parent
ea96bc9af3
commit
004209078c
5 changed files with 14 additions and 33 deletions
|
@ -2,32 +2,29 @@ package org.dimdev.dimdoors.block.entity;
|
|||
|
||||
import java.util.Optional;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import net.minecraft.util.JsonHelper;
|
||||
import net.minecraft.util.math.EulerAngle;
|
||||
import org.dimdev.dimdoors.DimensionalDoorsInitializer;
|
||||
import org.dimdev.dimdoors.block.CoordinateTransformerBlock;
|
||||
import org.dimdev.dimdoors.item.RiftKeyItem;
|
||||
import org.dimdev.dimdoors.rift.registry.Rift;
|
||||
import org.dimdev.dimdoors.util.EntityUtils;
|
||||
import org.dimdev.dimdoors.util.TeleportUtil;
|
||||
import org.dimdev.dimdoors.util.math.TransformationMatrix3d;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.DoorBlock;
|
||||
import net.minecraft.block.HorizontalFacingBlock;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.math.EulerAngle;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import org.dimdev.dimdoors.util.math.TransformationMatrix3d;
|
||||
import org.dimdev.dimdoors.world.level.component.RiftKeyIdsComponent;
|
||||
import org.lwjgl.system.CallbackI;
|
||||
|
||||
public class EntranceRiftBlockEntity extends RiftBlockEntity {
|
||||
private boolean locked;
|
||||
|
|
|
@ -112,8 +112,9 @@ public class RiftKeyItem extends Item {
|
|||
}
|
||||
|
||||
public static void add(ItemStack stack, UUID id) {
|
||||
IntArrayTag arrayTag = new IntArrayTag(DynamicSerializableUuid.toIntArray(id));
|
||||
if (!has(stack, id)) stack.getOrCreateTag().getList("Ids", NbtType.LIST).add(arrayTag);
|
||||
if (!has(stack, id)) {
|
||||
stack.getOrCreateTag().getList("Ids", NbtType.LIST).add(new IntArrayTag(DynamicSerializableUuid.toIntArray(id)));
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean has(ItemStack stack, UUID id) {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
"bedrock_floor_position": 0,
|
||||
"bedrock_roof_position": -2147483648,
|
||||
"noise_caves_enabled": true,
|
||||
"deepslate_enabled": false,
|
||||
"aquifers_enabled": false,
|
||||
"disable_mob_generation": false,
|
||||
"sea_level": 32,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "dimdoors:unstable_dimensional_door"
|
||||
"name": "dimdoors:iron_dimensional_door"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"#X#"
|
||||
],
|
||||
"key": {
|
||||
"#": {
|
||||
"item": "minecraft:iron_door"
|
||||
},
|
||||
"X": {
|
||||
"item": "minecraft:ender_eye"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "dimdoors:unstable_dimensional_door",
|
||||
"count": 1
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue