Rewrote matter cannon ammo registry to be tag based.

This commit is contained in:
Sebastian Hartte
2020-06-21 22:48:42 +02:00
parent 9ab91cd98b
commit e1131bd1e2
3 changed files with 117 additions and 101 deletions
+1 -5
View File
@@ -233,11 +233,7 @@ final class Registration {
registries.cell().addCellGuiHandler(new BasicItemCellGuiHandler());
registries.cell().addCellGuiHandler(new BasicFluidCellGuiHandler());
api.definitions().materials().matterBall().maybeStack(1).ifPresent(ammoStack -> {
final double weight = 32;
registries.matterCannon().registerAmmo(ammoStack, weight);
});
registries.matterCannon().registerAmmoItem(api.definitions().materials().matterBall().item(), 32);
PartItemPredicate.register();
}