vary room theme weights — sculk rare, inferno/ice uncommon
This commit is contained in:
@@ -97,14 +97,14 @@ public final class TyingInteractionHelper {
|
||||
player
|
||||
);
|
||||
|
||||
TyingTask currentTask = playerState.getCurrentTyingTask();
|
||||
TyingTask currentTask = playerState.tasks().getCurrentTyingTask();
|
||||
if (currentTask == null
|
||||
|| !(currentTask instanceof V2TyingPlayerTask)
|
||||
|| !currentTask.isSameTarget(target)
|
||||
|| currentTask.isOutdated()
|
||||
|| !ItemStack.matches(currentTask.getBind(), stack)) {
|
||||
// Start new task (also handles case where existing task is V1 TyingPlayerTask)
|
||||
playerState.setCurrentTyingTask(newTask);
|
||||
playerState.tasks().setCurrentTyingTask(newTask);
|
||||
newTask.start();
|
||||
} else {
|
||||
newTask = (V2TyingPlayerTask) currentTask;
|
||||
@@ -114,7 +114,7 @@ public final class TyingInteractionHelper {
|
||||
|
||||
if (newTask.isStopped()) {
|
||||
// Item already consumed by V2TyingPlayerTask.onComplete() — don't shrink again
|
||||
playerState.setCurrentTyingTask(null);
|
||||
playerState.tasks().setCurrentTyingTask(null);
|
||||
TiedUpMod.LOGGER.info("[TyingInteraction] {} tied {}", player.getName().getString(), target.getName().getString());
|
||||
}
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ public class V2BondageEquipment implements IV2BondageEquipment {
|
||||
savedPolePosition = BlockPos.of(tag.getLong("pole_position"));
|
||||
savedPoleDimension = ResourceKey.create(
|
||||
Registries.DIMENSION,
|
||||
new ResourceLocation(tag.getString("pole_dimension"))
|
||||
ResourceLocation.parse(tag.getString("pole_dimension"))
|
||||
);
|
||||
} catch (net.minecraft.ResourceLocationException e) {
|
||||
com.tiedup.remake.core.TiedUpMod.LOGGER.warn(
|
||||
|
||||
@@ -329,7 +329,7 @@ public final class DataDrivenItemParser {
|
||||
if (idPath.endsWith(".json")) {
|
||||
idPath = idPath.substring(0, idPath.length() - 5);
|
||||
}
|
||||
ResourceLocation id = new ResourceLocation(
|
||||
ResourceLocation id = ResourceLocation.fromNamespaceAndPath(
|
||||
fileId.getNamespace(),
|
||||
idPath
|
||||
);
|
||||
|
||||
@@ -19,7 +19,7 @@ public class V2Handcuffs extends AbstractV2BondageItem {
|
||||
private static final Set<BodyRegionV2> REGIONS =
|
||||
Collections.unmodifiableSet(EnumSet.of(BodyRegionV2.ARMS));
|
||||
|
||||
private static final ResourceLocation MODEL = new ResourceLocation(
|
||||
private static final ResourceLocation MODEL = ResourceLocation.fromNamespaceAndPath(
|
||||
TiedUpMod.MOD_ID,
|
||||
"models/gltf/v2/handcuffs/cuffs_prototype.glb"
|
||||
);
|
||||
|
||||
@@ -184,7 +184,7 @@ public class DataDrivenIconOverrides extends ItemOverrides {
|
||||
if (path.startsWith("item/")) {
|
||||
String itemPath = path.substring("item/".length());
|
||||
ModelResourceLocation mrl = new ModelResourceLocation(
|
||||
new ResourceLocation(iconRL.getNamespace(), itemPath),
|
||||
ResourceLocation.fromNamespaceAndPath(iconRL.getNamespace(), itemPath),
|
||||
"inventory"
|
||||
);
|
||||
model = mc.getModelManager().getModel(mrl);
|
||||
|
||||
@@ -126,7 +126,7 @@ public class V2ClientSetup {
|
||||
DataDrivenIconOverrides.Mode mode
|
||||
) {
|
||||
ModelResourceLocation itemModelLoc = new ModelResourceLocation(
|
||||
new ResourceLocation(TiedUpMod.MOD_ID, itemName),
|
||||
ResourceLocation.fromNamespaceAndPath(TiedUpMod.MOD_ID, itemName),
|
||||
"inventory"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user