diff options
author | Jaume Aloy <hircine45@gmail.com> | 2014-08-21 12:08:38 +0200 |
---|---|---|
committer | Jaume Aloy <hircine45@gmail.com> | 2014-08-21 12:08:38 +0200 |
commit | 19d1c976e7cd7f6c8a4cb3540d5512a035a4162a (patch) | |
tree | e014b26ee9a2bfd15d31552338e9225777a48b81 /src/Entities/Player.cpp | |
parent | Changed if in BlockHandler (diff) | |
download | cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.tar cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.tar.gz cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.tar.bz2 cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.tar.lz cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.tar.xz cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.tar.zst cuberite-19d1c976e7cd7f6c8a4cb3540d5512a035a4162a.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index c1031907d..8b829d090 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1978,7 +1978,7 @@ void cPlayer::UseEquippedItem(int a_Amount) } cFastRandom Random; - if (Random.NextInt(100) <= chance) + if (Random.NextInt(101) <= chance) { return; } |