mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Fixed #5419
This commit is contained in:
parent
5601f97266
commit
a756dec379
@ -92,6 +92,8 @@ public class ConstructBlock extends Block{
|
||||
|
||||
Fx.placeBlock.at(tile.drawx(), tile.drawy(), block.size);
|
||||
if(shouldPlay()) Sounds.place.at(tile, calcPitch(true));
|
||||
|
||||
Events.fire(new BlockBuildEndEvent(tile, builder, team, false, config));
|
||||
}
|
||||
|
||||
static boolean shouldPlay(){
|
||||
@ -123,8 +125,6 @@ public class ConstructBlock extends Block{
|
||||
if(tile.build != null){
|
||||
tile.build.placed();
|
||||
}
|
||||
|
||||
Events.fire(new BlockBuildEndEvent(tile, builder, team, false, config));
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -259,7 +259,9 @@ public class ConstructBlock extends Block{
|
||||
|
||||
if(progress >= 1f || state.rules.infiniteResources){
|
||||
if(lastBuilder == null) lastBuilder = builder;
|
||||
constructed(tile, current, lastBuilder, (byte)rotation, builder.team, config);
|
||||
if(!net.client()){
|
||||
constructed(tile, current, lastBuilder, (byte)rotation, builder.team, config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user