mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 05:51:12 +00:00
Small bug
This commit is contained in:
parent
6771c3186b
commit
d62f91f708
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ function inject(serv,player)
|
|||
{
|
||||
clearInterval(animationInterval);
|
||||
var diggingTime=new Date()-startDiggingTime;
|
||||
if(expectedDiggingTime-diggingTime<100)
|
||||
if(expectedDiggingTime-diggingTime<100) {
|
||||
var doDefault = cancelEmit(player, "finishDig", {
|
||||
time: diggingTime,
|
||||
position: pos,
|
||||
|
|
@ -100,6 +100,7 @@ function inject(serv,player)
|
|||
});
|
||||
if (!doDefault) return;
|
||||
player.changeBlock(location,0);
|
||||
}
|
||||
else
|
||||
{
|
||||
player._client.write("block_change",{
|
||||
|
|
|
|||
Loading…
Reference in a new issue