mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-11 01:38:07 +02:00
Limit arrows sticking to 127
This commit is contained in:
parent
d5913354e4
commit
b3deaa9b70
@ -146,11 +146,11 @@ public class LivingWatcher extends FlagWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getArrowsSticking() {
|
public int getArrowsSticking() {
|
||||||
return (int) getData(MetaIndex.LIVING_ARROWS);
|
return getData(MetaIndex.LIVING_ARROWS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArrowsSticking(int arrowsNo) {
|
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);
|
sendData(MetaIndex.LIVING_ARROWS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user