Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ticxo
MoLang
Commits
4399d564
Commit
4399d564
authored
4 years ago
by
EmreTr1
Browse files
Options
Download
Email Patches
Plain Diff
minor fixes
parent
bb3b18ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/bedrockk/molang/runtime/MoLangMath.java
src/main/java/com/bedrockk/molang/runtime/MoLangMath.java
+1
-1
src/main/java/com/bedrockk/molang/runtime/MoParams.java
src/main/java/com/bedrockk/molang/runtime/MoParams.java
+1
-1
No files found.
src/main/java/com/bedrockk/molang/runtime/MoLangMath.java
View file @
4399d564
...
@@ -21,7 +21,7 @@ public class MoLangMath {
...
@@ -21,7 +21,7 @@ public class MoLangMath {
put
(
"die_roll"
,
params
->
dieRoll
(
params
.
getDouble
(
0
),
params
.
getDouble
(
1
),
params
.
getDouble
(
2
)));
put
(
"die_roll"
,
params
->
dieRoll
(
params
.
getDouble
(
0
),
params
.
getDouble
(
1
),
params
.
getDouble
(
2
)));
put
(
"die_roll_integer"
,
params
->
dieRollInt
(
params
.
getInt
(
0
),
params
.
getInt
(
1
),
params
.
getInt
(
2
)));
put
(
"die_roll_integer"
,
params
->
dieRollInt
(
params
.
getInt
(
0
),
params
.
getInt
(
1
),
params
.
getInt
(
2
)));
put
(
"exp"
,
params
->
Math
.
exp
(
params
.
getDouble
(
0
)));
put
(
"exp"
,
params
->
Math
.
exp
(
params
.
getDouble
(
0
)));
put
(
"mod"
,
params
->
params
.
getDouble
(
0
)
%
params
.
getDouble
(
0
));
put
(
"mod"
,
params
->
params
.
getDouble
(
0
)
%
params
.
getDouble
(
1
));
put
(
"floor"
,
params
->
Math
.
floor
(
params
.
getDouble
(
0
)));
put
(
"floor"
,
params
->
Math
.
floor
(
params
.
getDouble
(
0
)));
put
(
"hermite_blend"
,
params
->
hermiteBlend
(
params
.
getInt
(
0
)));
put
(
"hermite_blend"
,
params
->
hermiteBlend
(
params
.
getInt
(
0
)));
put
(
"lerp"
,
params
->
lerp
(
params
.
getDouble
(
0
),
params
.
getDouble
(
1
),
params
.
getDouble
(
2
)));
put
(
"lerp"
,
params
->
lerp
(
params
.
getDouble
(
0
),
params
.
getDouble
(
1
),
params
.
getDouble
(
2
)));
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/bedrockk/molang/runtime/MoParams.java
View file @
4399d564
...
@@ -30,7 +30,7 @@ public class MoParams {
...
@@ -30,7 +30,7 @@ public class MoParams {
}
}
public
boolean
contains
(
int
index
)
{
public
boolean
contains
(
int
index
)
{
return
params
.
get
(
index
)
!=
null
;
return
params
.
size
()
>=
index
+
1
;
}
}
public
int
getInt
(
int
index
)
{
public
int
getInt
(
int
index
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment