Skip to content

Commit

Permalink
version bump to 4.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
WinDanesz committed May 18, 2024
1 parent 936601c commit 65ed0e8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .forge/update.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"homepage": "https://www.curseforge.com/minecraft/mc-mods/electroblobs-wizardry",
"promos": {
"1.12.2-latest": "4.3.13",
"1.12.2-recommended": "4.3.13"
"1.12.2-latest": "4.3.14",
"1.12.2-recommended": "4.3.14"
}
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ apply plugin: org.ajoberstar.grgit.gradle.GrgitPlugin
apply plugin: 'wtf.gofancy.fancygradle'


version = "4.3.13"
version = "4.3.14"
group= "electroblob.wizardry"// http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "ElectroblobsWizardry"

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/electroblob/wizardry/Wizardry.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class Wizardry {
* 1.x.x represents Minecraft 1.7.x versions, 2.x.x represents Minecraft 1.10.x versions, 3.x.x represents Minecraft
* 1.11.x versions, and so on.
*/
public static final String VERSION = "4.3.13";
public static final String VERSION = "4.3.14";

/**
* Json file used by Forge's built-in <a href="https://mcforge.readthedocs.io/en/1.12.x/gettingstarted/autoupdate/">update checker</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public static void init(){
ARTEFACT_TYPE_MAP.put(ItemArtefact.Type.BELT, BaubleType.BELT);
ARTEFACT_TYPE_MAP.put(ItemArtefact.Type.BODY, BaubleType.BODY);
ARTEFACT_TYPE_MAP.put(ItemArtefact.Type.HEAD, BaubleType.HEAD);
ARTEFACT_TYPE_MAP.put(ItemArtefact.Type.TRINKET, BaubleType.TRINKET);
}

public static boolean enabled(){
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/electroblob/wizardry/spell/Telekinesis.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ protected boolean onEntityHit(World world, Entity target, Vec3d hit, EntityLivin
target.motionZ = (origin.z - target.posZ) / 6;
return true;

} else if (target instanceof EntityPlayer && (Wizardry.settings.telekineticDisarmament && !ItemArtefact.isArtefactActive((EntityPlayer) target, WizardryItems.amulet_anchoring)) {
} else if (target instanceof EntityPlayer && (Wizardry.settings.telekineticDisarmament && !ItemArtefact.isArtefactActive((EntityPlayer) target, WizardryItems.amulet_anchoring))) {

EntityPlayer player = (EntityPlayer) target;

EntityPlayer player = (EntityPlayer)target;

// IDEA: Disarm the offhand if the mainhand is empty or otherwise harmless?

if(!player.getHeldItemMainhand().isEmpty()){
if (!player.getHeldItemMainhand().isEmpty()) {

if(!world.isRemote){
if (!world.isRemote) {
EntityItem item = player.entityDropItem(player.getHeldItemMainhand(), 0);
// Makes the item move towards the caster
item.motionX = (origin.x - player.posX) / 20;
item.motionZ = (origin.z - player.posZ) / 20;
}

player.setHeldItem(EnumHand.MAIN_HAND, ItemStack.EMPTY);

return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"modid" : "ebwizardry",
"name" : "Electroblob's Wizardry",
"version" : "4.3.13",
"version" : "4.3.14",
"mcversion" : "1.12.2",
"url" : "https://minecraft.curseforge.com/projects/electroblobs-wizardry",
"credits" : "\nDesigned, coded and textured by Electroblob.\nDiscord Moderators: FavouriteDragon, WinDanesz\nCode contributed by: Corail31, 12foo, Shadows-of-Fire, Tora-B, Avatair, Aeronica, UltraHex, Azim-Palmer, raoulvdberge, rafasoares, xinyuan-liu, SettingDust, Aralu115, WinDanesz, ZettaSword.\nTranslators: Alsentar (Spanish), MadWrist (Mexican Spanish), VilagVil, kellixon, bigenergy, MugGod2 & DrHesperus (Russian), Hahdrim & Crowller (French), lorrampi (Brazilian Portuguese), ZHENGLOC, dragon-evol, Hokorizero, TUsama & Determancer (Chinese - Simplified), shejery, rewi_wire, 방통 & red1854th (Korean), Trozuu & Olej (Polish), BirdyDragon & Lemopav (German), chesterccj305 (Chinese - Traditional), Bombadil (Hungarian).\nSound Effects: OhhWowProductions, fredzed, deleted_user_3277771, DiscoveryME, OGSoundFX, leosalom, juskiddink",
Expand Down

0 comments on commit 65ed0e8

Please sign in to comment.