Generation tweaks
This commit is contained in:
@@ -73,6 +73,7 @@ public class LaunchPad extends Block{
|
||||
|
||||
@Override
|
||||
public boolean shouldConsume(){
|
||||
//TODO do not consume after reload / disable?
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -122,7 +123,9 @@ public class LaunchPad extends Block{
|
||||
if(!state.isCampaign()) return;
|
||||
|
||||
//increment launchCounter then launch when full and base conditions are met
|
||||
if((launchCounter += edelta()) >= launchTime && edelta() >= 0.001f && items.total() >= itemCapacity){
|
||||
if((launchCounter += edelta()) >= launchTime && consValid() && items.total() >= itemCapacity){
|
||||
//if there are item requirements, use those.
|
||||
consume();
|
||||
launchSound.at(x, y);
|
||||
LaunchPayload entity = LaunchPayload.create();
|
||||
items.each((item, amount) -> entity.stacks.add(new ItemStack(item, amount)));
|
||||
|
||||
Reference in New Issue
Block a user