mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
now lasers work up and down, whoops.
This commit is contained in:
parent
59785c4d1c
commit
ec8cb4888c
2 changed files with 19 additions and 10 deletions
|
@ -36,11 +36,20 @@ public class ReconstructorRenderer extends TileEntityRenderer<TileEntityAtomicRe
|
||||||
public void render(TileEntityAtomicReconstructor tile, float partialTicks, MatrixStack matrices, IRenderTypeBuffer buffer, int combinedLight, int combinedOverlay) {
|
public void render(TileEntityAtomicReconstructor tile, float partialTicks, MatrixStack matrices, IRenderTypeBuffer buffer, int combinedLight, int combinedOverlay) {
|
||||||
ItemStack stack = tile.inv.getStackInSlot(0);
|
ItemStack stack = tile.inv.getStackInSlot(0);
|
||||||
//default color 0x1b6dff
|
//default color 0x1b6dff
|
||||||
|
|
||||||
|
if (tile.getProgress() > 0) {
|
||||||
Direction direction = tile.getOrientation();
|
Direction direction = tile.getOrientation();
|
||||||
float rot = 360.0f - direction.getOpposite().toYRot(); //Sigh...
|
float rot = 360.0f - direction.getOpposite().toYRot(); //Sigh...
|
||||||
|
float pitch = 0;
|
||||||
|
if (direction == Direction.UP) {
|
||||||
|
pitch = 90;
|
||||||
|
} else if (direction == Direction.DOWN) {
|
||||||
|
pitch = -90;
|
||||||
|
}
|
||||||
|
|
||||||
AssetUtil.renderLaser(matrices, buffer, 0,0,0, rot, 0, 5, 0, 0x1b6dff, 0.8f * tile.getProgress(), 0.2f);
|
AssetUtil.renderLaser(matrices, buffer, 0, 0, 0, rot, pitch, 5, 0, 0x1b6dff, 0.8f * tile.getProgress(), 0.2f);
|
||||||
tile.decTTL();
|
tile.decTTL();
|
||||||
|
}
|
||||||
if (!StackUtil.isValid(stack) || !(stack.getItem() instanceof ILensItem)) {
|
if (!StackUtil.isValid(stack) || !(stack.getItem() instanceof ILensItem)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -369,10 +369,10 @@
|
||||||
"item.actuallyadditions.empowered_void_crystal": "Empowered Void Crystal",
|
"item.actuallyadditions.empowered_void_crystal": "Empowered Void Crystal",
|
||||||
"item.actuallyadditions.empowered_enori_crystal": "Empowered Enori Crystal",
|
"item.actuallyadditions.empowered_enori_crystal": "Empowered Enori Crystal",
|
||||||
"item.actuallyadditions.lens": "Lens",
|
"item.actuallyadditions.lens": "Lens",
|
||||||
"item.actuallyadditions.color_lens": "Lens of Color",
|
"item.actuallyadditions.lens_of_color": "Lens of Color",
|
||||||
"item.actuallyadditions.explosion_lens": "Lens of Detonation",
|
"item.actuallyadditions.lens_of_detonation": "Lens of Detonation",
|
||||||
"item.actuallyadditions.damage_lens": "Lens of Certain Death",
|
"item.actuallyadditions.lens_of_certain_death": "Lens of Certain Death",
|
||||||
"item.actuallyadditions.disenchanting_lens": "Lens of Disenchanting",
|
"item.actuallyadditions.lens_of_disenchanting": "Lens of Disenchanting",
|
||||||
"item.actuallyadditions.crate_keeper": "Storage Crate Keeper",
|
"item.actuallyadditions.crate_keeper": "Storage Crate Keeper",
|
||||||
"item.actuallyadditions.pickaxe_crystal_red": "Restonia Crystal Pickaxe",
|
"item.actuallyadditions.pickaxe_crystal_red": "Restonia Crystal Pickaxe",
|
||||||
"item.actuallyadditions.axe_crystal_red": "Restonia Crystal Axe",
|
"item.actuallyadditions.axe_crystal_red": "Restonia Crystal Axe",
|
||||||
|
@ -450,8 +450,8 @@
|
||||||
"item.actuallyadditions.void_sack": "Void Sack",
|
"item.actuallyadditions.void_sack": "Void Sack",
|
||||||
"item.actuallyadditions.crystallized_canola_seed": "Crystallized Canola Seed",
|
"item.actuallyadditions.crystallized_canola_seed": "Crystallized Canola Seed",
|
||||||
"item.actuallyadditions.empowered_canola_seed": "Empowered Canola Seed",
|
"item.actuallyadditions.empowered_canola_seed": "Empowered Canola Seed",
|
||||||
"item.actuallyadditions.mining_lens": "Lens of the Miner",
|
"item.actuallyadditions.lens_of_the_miner": "Lens of the Miner",
|
||||||
"item.actuallyadditions.more_damage_lens": "Lens of the Killer",
|
"item.actuallyadditions.lens_of_the_killer": "Lens of the Killer",
|
||||||
"item.actuallyadditions.filling_wand": "Handheld Filler",
|
"item.actuallyadditions.filling_wand": "Handheld Filler",
|
||||||
"item.actuallyadditions.laser_upgrade_invisibility": "Laser Relay Modifier: Invisibility",
|
"item.actuallyadditions.laser_upgrade_invisibility": "Laser Relay Modifier: Invisibility",
|
||||||
"item.actuallyadditions.engineer_goggles": "Engineer's Goggles",
|
"item.actuallyadditions.engineer_goggles": "Engineer's Goggles",
|
||||||
|
|
Loading…
Reference in a new issue