mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
"Fixed" items quantities jumping around due to lag
This commit is contained in:
parent
5cc092f58c
commit
2208198aa8
@ -1,7 +1,7 @@
|
||||
#Autogenerated file. Do not modify.
|
||||
#Mon Feb 19 14:45:40 EST 2018
|
||||
#Mon Feb 19 15:07:31 EST 2018
|
||||
version=beta
|
||||
androidBuildCode=245
|
||||
androidBuildCode=247
|
||||
name=Mindustry
|
||||
code=3.3
|
||||
build=custom build
|
||||
|
@ -1,5 +1,6 @@
|
||||
package io.anuke.mindustry.world.blocks.types.defense;
|
||||
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.mindustry.resource.Item;
|
||||
import io.anuke.mindustry.world.Block;
|
||||
import io.anuke.mindustry.world.Tile;
|
||||
@ -26,7 +27,7 @@ public class CoreBlock extends Block {
|
||||
|
||||
@Override
|
||||
public void handleItem(Item item, Tile tile, Tile source){
|
||||
state.inventory.addItem(item, 1);
|
||||
if(Net.server() || !Net.active()) state.inventory.addItem(item, 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user