Skip to content

Commit 3ca6e49

Browse files
committed
fix error
1 parent 83adb78 commit 3ca6e49

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/ytdd9527/networksexpansion/utils/databases

1 file changed

+1
-1
lines changed

src/main/java/com/ytdd9527/networksexpansion/utils/databases/DataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public StorageUnitData getStorageData(int id) {
101101
}
102102
}
103103

104-
re = new StorageUnitData(result.getInt("ContainerID"), result.getString("PlayerUUID"), StorageUnitType.values()[result.getInt("SizeType")], result.getBoolean("IsPlaced"), l, getStoredItem(id));
104+
re = new StorageUnitData(result.getInt("ContainerID"), result.getString("PlayerUUID"), StorageUnitType.values()[result.getInt("SizeType") % 13], result.getBoolean("IsPlaced"), l, getStoredItem(id));
105105
}
106106
} catch (SQLException e) {
107107
logger.warning(Networks.getLocalizationService().getString("messages.data-saving.error-occurred-when-loading-data"));

0 commit comments

Comments
 (0)