mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Limit arrows sticking to 127
This commit is contained in:
parent
d5913354e4
commit
b3deaa9b70
1 changed files with 2 additions and 2 deletions
|
@ -146,11 +146,11 @@ public class LivingWatcher extends FlagWatcher {
|
|||
}
|
||||
|
||||
public int getArrowsSticking() {
|
||||
return (int) getData(MetaIndex.LIVING_ARROWS);
|
||||
return getData(MetaIndex.LIVING_ARROWS);
|
||||
}
|
||||
|
||||
public void setArrowsSticking(int arrowsNo) {
|
||||
setData(MetaIndex.LIVING_ARROWS, arrowsNo);
|
||||
setData(MetaIndex.LIVING_ARROWS, Math.max(0, Math.min(127, arrowsNo)));
|
||||
sendData(MetaIndex.LIVING_ARROWS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue