Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
fix deco controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Aug 24, 2022
1 parent 37babc7 commit 5d6950c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ fml_range=[38,)
forge_range=[41.1.0,)

#The currently running forge.
forgeVersion=42.0.0
forgeVersion=43.1.2
#The minimal needed forge, as marked in metadata and curseforge.
forgeMinVersion=41.1.0

#The version for forge (dependency)
exactMinecraftVersion=1.19.1
exactMinecraftVersion=1.19.2
#The main version on curseforge
minecraftVersion=1.19
#Comma seperated list of mc versions, which are marked as compatible on curseforge
additionalMinecraftVersions=1.19;1.19.2

mappingsChannel=official
mappingsVersion=1.19
mappingsVersion=1.19.2

dataGeneratorsVersion=0.1.48-ALPHA
blockUI_version=1.19-0.0.60-ALPHA
structurize_version=1.19.1-1.0.435-ALPHA
structurize_version=1.19.2-1.0.437-ALPHA
domumOrnamentumVersion=1.19-1.0.58-ALPHA
multiPistonVersion=1.19-1.2.14-ALPHA

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@

public class TileEntityDecorationController extends BlockEntity implements IBlueprintDataProviderBE, IRotatableBlockEntity
{
/**
* Tag to store the basic facing to NBT
*/
private static final String TAG_FACING = "facing";

/**
* The schematic name of the placerholder block.
*/
Expand Down Expand Up @@ -184,6 +179,23 @@ public void readSchematicDataFromNBT(CompoundTag compound)
{
this.packName = DEFAULT_STYLE;
}

if (this.schematicName.contains("/"))
{
final String[] splitName = this.schematicName.split("/");
this.schematicName = splitName[splitName.length - 1];
}
else if (this.schematicName.contains("\\"))
{
final String[] splitName = this.schematicName.split("\\\\");
this.schematicName = splitName[splitName.length - 1];
}

if (compound.contains(TAG_LEVEL))
{
this.schematicName += compound.getInt(TAG_LEVEL);
}

this.schematicPath = StructurePacks.getStructurePack(this.packName).getSubPath(StructurePacks.findBlueprint(this.packName, schematicName));
}

Expand Down

0 comments on commit 5d6950c

Please sign in to comment.