Skip to content

Commit

Permalink
fix: missing last present
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Feb 15, 2025
1 parent cc1da97 commit e486ac0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ private void createTableMetadataTable() {
if (Slimefun.isNewlyInstalled()) {
executeSql(MessageFormat.format(
"""
INSERT INTO {0} ({1}, {2}) VALUES ({3}, {4});
INSERT INTO {0} ({1}, {2}) VALUES ("{3}", {4});
""",
tableMetadataTable,
FIELD_TABLE_METADATA_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private void createTableMetadataTable() {
if (Slimefun.isNewlyInstalled()) {
executeSql(MessageFormat.format(
"""
INSERT INTO {0} ({1}, {2}) VALUES ({3}, {4});
INSERT INTO {0} ({1}, {2}) VALUES ("{3}", {4});
""",
tableMetadataTable,
FIELD_TABLE_METADATA_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ private void createTableMetadataTable() {
if (Slimefun.isNewlyInstalled()) {
executeSql(MessageFormat.format(
"""
INSERT INTO {0} ({1}, {2}) VALUES ({3}, {4});
INSERT INTO {0} ({1}, {2}) VALUES ("{3}", {4});
""",
SqlUtils.mapTable(DataScope.TABLE_METADATA),
FIELD_TABLE_METADATA_KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ public SlimefunUniversalBlockData createUniversalBlock(Location l, String sfId)
var uuid = UUID.randomUUID();
var uniData = new SlimefunUniversalBlockData(uuid, sfId, l);

uniData.initLastPresent();

uniData.setIsDataLoaded(true);

uniData.initLastPresent();

loadedUniversalData.put(uuid, uniData);

var preset = UniversalMenuPreset.getPreset(sfId);
Expand Down

0 comments on commit e486ac0

Please sign in to comment.