Use act() in reactor scripts where possible, provide empty act() otherwise

"function hit()" has triggered on each reactor hit,
while "function act()" is only triggered once it's destroyed or reached an end state
This commit is contained in:
P0nk
2022-08-31 21:33:50 +02:00
parent 298457a007
commit ea76880b7f
10 changed files with 25 additions and 14 deletions

View File

@@ -2,8 +2,6 @@
Yulete's Lab: Making the Reagent
*/
function hit() {
if (rm.getReactor().getState() == 4) {
rm.dropItems();
}
function act() {
rm.dropItems();
}