mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-17 13:31:16 +00:00
11 lines
No EOL
296 B
JavaScript
11 lines
No EOL
296 B
JavaScript
module.exports=inject;
|
|
|
|
function inject(serv,player)
|
|
{
|
|
// doesn't check whether the player actually wait the correct time
|
|
player._client.on("block_dig",function(packet){
|
|
if(packet.status==2 || (packet.status==0 && player.gameMode==1))
|
|
player.changeBlock(packet.location,0);
|
|
});
|
|
|
|
} |