mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 05:51:47 -08:00
update
This commit is contained in:
parent
99b0768a92
commit
261c10430b
2 changed files with 3 additions and 4 deletions
|
|
@ -519,8 +519,7 @@ public class ContentParser{
|
|||
}
|
||||
}
|
||||
}
|
||||
case "item" -> block.consumeItem(child.isString() ? find(ContentType.item, child.asString()) :
|
||||
parser.readValue(Item.class, child));
|
||||
case "item" -> block.consumeItem(find(ContentType.item, child.asString()));
|
||||
case "itemCharged" -> block.consume((Consume)parser.readValue(ConsumeItemCharged.class, child));
|
||||
case "itemFlammable" -> block.consume((Consume)parser.readValue(ConsumeItemFlammable.class, child));
|
||||
case "itemRadioactive" -> block.consume((Consume)parser.readValue(ConsumeItemRadioactive.class, child));
|
||||
|
|
|
|||
|
|
@ -735,8 +735,8 @@ public class Block extends UnlockableContent implements Senseable{
|
|||
offset = ((size + 1) % 2) * tilesize / 2f;
|
||||
sizeOffset = -((size - 1) / 2);
|
||||
|
||||
if (consumers.length != 0){
|
||||
for (var consume : consumers) {
|
||||
if(consumers.length != 0){
|
||||
for(var consume : consumers){
|
||||
consume.apply(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue