mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 03:31:10 +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);
|
clearInterval(animationInterval);
|
||||||
var diggingTime=new Date()-startDiggingTime;
|
var diggingTime=new Date()-startDiggingTime;
|
||||||
if(expectedDiggingTime-diggingTime<100)
|
if(expectedDiggingTime-diggingTime<100) {
|
||||||
var doDefault = cancelEmit(player, "finishDig", {
|
var doDefault = cancelEmit(player, "finishDig", {
|
||||||
time: diggingTime,
|
time: diggingTime,
|
||||||
position: pos,
|
position: pos,
|
||||||
|
|
@ -100,6 +100,7 @@ function inject(serv,player)
|
||||||
});
|
});
|
||||||
if (!doDefault) return;
|
if (!doDefault) return;
|
||||||
player.changeBlock(location,0);
|
player.changeBlock(location,0);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player._client.write("block_change",{
|
player._client.write("block_change",{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue