mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-26 07:37:54 +07:00
Fixed host bug, server failing to kick people firing too fast
This commit is contained in:
@ -25,7 +25,7 @@ allprojects {
|
|||||||
appName = 'Mindustry'
|
appName = 'Mindustry'
|
||||||
gdxVersion = '1.9.8'
|
gdxVersion = '1.9.8'
|
||||||
aiVersion = '1.8.1'
|
aiVersion = '1.8.1'
|
||||||
uCoreVersion = '238babe'
|
uCoreVersion = 'a4f1863'
|
||||||
|
|
||||||
getVersionString = {
|
getVersionString = {
|
||||||
String buildVersion = getBuildVersion()
|
String buildVersion = getBuildVersion()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#Autogenerated file. Do not modify.
|
#Autogenerated file. Do not modify.
|
||||||
#Sat Mar 24 19:29:29 EDT 2018
|
#Wed Mar 28 00:20:39 EDT 2018
|
||||||
version=release
|
version=release
|
||||||
androidBuildCode=474
|
androidBuildCode=476
|
||||||
name=Mindustry
|
name=Mindustry
|
||||||
code=3.5
|
code=3.5
|
||||||
build=35
|
build=35
|
||||||
|
@ -174,10 +174,10 @@ public class NetServer extends Module{
|
|||||||
|
|
||||||
float wtrc = 60;
|
float wtrc = 60;
|
||||||
|
|
||||||
if(TimeUtils.millis() < info.lastFastShot + wtrc*1000){
|
if(TimeUtils.millis() < info.lastFastShot + (int)(wtrc/60f*1000)){
|
||||||
info.fastShots ++;
|
info.fastShots ++;
|
||||||
|
|
||||||
if(info.fastShots - 10 > (int)(wtrc / (weapon.getReload() / 2f))){
|
if(info.fastShots - 6 > (int)(wtrc / (weapon.getReload() / 2f))){
|
||||||
kick(id, KickReason.kick);
|
kick(id, KickReason.kick);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
Reference in New Issue
Block a user