Skip to content

Commit e1dc8cf

Browse files
committed
Version bump
1 parent f673198 commit e1dc8cf

2 files changed

Lines changed: 1 addition & 24 deletions

File tree

common/src/main/java/org/samo_lego/taterzens/npc/TaterzenNPC.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import net.minecraft.util.math.Box;
4242
import net.minecraft.util.math.MathHelper;
4343
import net.minecraft.util.math.Vec3d;
44-
import net.minecraft.util.registry.Registry;
4544
import net.minecraft.world.World;
4645
import net.minecraft.world.WorldView;
4746
import org.jetbrains.annotations.NotNull;
@@ -149,17 +148,6 @@ public static DefaultAttributeContainer.Builder createTaterzenAttributes() {
149148
.add(EntityAttributes.GENERIC_FOLLOW_RANGE, 35.0D);
150149
}
151150

152-
/**
153-
* Sets the *ONLY* command to be executed on right - click
154-
* @param command command to execute
155-
* @deprecated please use {@link TaterzenNPC#addCommand(String)}
156-
*/
157-
@Deprecated
158-
public void setCommand(String command) {
159-
this.clearCommands();
160-
this.npcData.commands.add(command);
161-
}
162-
163151
/**
164152
* Adds command to the list
165153
* of commands that will be executed on
@@ -527,17 +515,6 @@ public void readCustomDataFromTag(CompoundTag tag) {
527515
// Skin layers
528516
this.fakePlayer.getDataTracker().set(getPLAYER_MODEL_PARTS(), npcTag.getByte("SkinLayers"));
529517

530-
//todo @Deprecated (migration to disguiselib)
531-
// Compatibility (transition to disguiselib) & presets
532-
if(DISGUISELIB_LOADED && npcTag.contains("entityType")) {
533-
Identifier identifier = new Identifier(npcTag.getString("entityType"));
534-
if(!identifier.getPath().equals("player"))
535-
DisguiseLibCompatibility.disguiseAs(this, Registry.ENTITY_TYPE.get(identifier));
536-
}
537-
538-
// todo @deprecated (migration to more commands)
539-
if(npcTag.contains("command"))
540-
this.npcData.commands.add(npcTag.getString("command"));
541518

542519
// Multiple commands
543520
ListTag commands = (ListTag) npcTag.get("Commands");

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fabric_version=0.33.0+1.16
1313
forge_version=36.0.46
1414

1515
# Mod Properties
16-
mod_version = 1.0.3
16+
mod_version = 1.0.4
1717
maven_group = org.samo_lego
1818
archives_base_name = taterzens
1919

0 commit comments

Comments
 (0)