mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 01:10:19 -04:00
Increase max allowed EEPROM label length.
This commit is contained in:
parent
39cf701c0f
commit
f73418f231
@ -146,7 +146,7 @@ object Items extends ItemAPI {
|
||||
override def registerEEPROM(name: String, code: Array[Byte], data: Array[Byte], readonly: Boolean): ItemStack = {
|
||||
val nbt = new NBTTagCompound()
|
||||
if (name != null) {
|
||||
nbt.setString(Settings.namespace + "label", name.trim.take(16))
|
||||
nbt.setString(Settings.namespace + "label", name.trim.take(24))
|
||||
}
|
||||
if (code != null) {
|
||||
nbt.setByteArray(Settings.namespace + "eeprom", code.take(Settings.get.eepromSize))
|
||||
|
@ -54,7 +54,7 @@ class EEPROM extends prefab.ManagedEnvironment {
|
||||
if (readonly) {
|
||||
return result(Unit, "storage is readonly")
|
||||
}
|
||||
label = args.optString(0, "EEPROM").trim.take(16)
|
||||
label = args.optString(0, "EEPROM").trim.take(24)
|
||||
if (label.length == 0) label = "EEPROM"
|
||||
result(label)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user