All items and structures have to define a sourcerect for the sprite because otherwise the dedicated server won't know the size of the entity. Closes #321

This commit is contained in:
Joonas Rikkonen
2018-03-06 13:55:30 +02:00
parent 0ab4521a7a
commit 8e8b8464af
16 changed files with 36 additions and 36 deletions
@@ -2,10 +2,9 @@
<Item
name="Pump"
linkable="true"
category="Machine"
>
category="Machine">
<Sprite texture ="pump.png" depth="0.8"/>
<Sprite texture ="pump.png" depth="0.8" sourcerect="0,0,128,128"/>
<Pump canbeselected = "true" maxflow="500" PowerConsumption="300.0" MinVoltage="0.3">
<GuiFrame rect="0,0,330,145" alignment="Center" style="ItemUI"/>
@@ -25,8 +24,7 @@
<Item
name="Small Pump"
linkable="true"
category="Machine"
>
category="Machine">
<Sprite texture ="smallpump.png" depth="0.8" sourcerect="0,0,64,48"/>