Skip to content

Commit

Permalink
port to 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Feb 7, 2025
1 parent 5685e55 commit 95400bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ author = masa
mod_file_name = tweakeroo-fabric

# Current mod version
mod_version = 0.22.4-sakura.3
mod_version = 0.22.4-sakura.4

# Required malilib version
malilib_version = 793c429fdd
malilib_version = 1.21.3-0.22.5-sakura.5

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 1.21.3
minecraft_version = 1.21.3
mappings_version = 1.21.3+build.2

fabric_loader_version = 0.16.7
mod_menu_version = 12.0.0-beta.1
mod_menu_version = 12.0.0
# fabric_api_version = 0.106.1+1.21.3
31 changes: 9 additions & 22 deletions src/main/java/fi/dy/masa/tweakeroo/mixin/MixinMinecraftClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,15 @@
@Mixin(MinecraftClient.class)
public abstract class MixinMinecraftClient implements IMinecraftClientInvoker
{
@Shadow
@Nullable
public ClientPlayerEntity player;
@Shadow
@Nullable
public ClientWorld world;
@Shadow
@Nullable
public Screen currentScreen;
@Shadow
@Final
public GameOptions options;
@Shadow
private int itemUseCooldown;
@Shadow
protected int attackCooldown;

@Shadow
private boolean doAttack() {return false;}

@Shadow
private void doItemUse() {}
@Shadow @Nullable public ClientPlayerEntity player;
@Shadow @Nullable public ClientWorld world;
@Shadow @Nullable public Screen currentScreen;
@Shadow @Final public GameOptions options;
@Shadow private int itemUseCooldown;
@Shadow protected int attackCooldown;

@Shadow private boolean doAttack() {return false;}
@Shadow private void doItemUse() {}

@Override
public void tweakeroo_setItemUseCooldown(int value)
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/fi/dy/masa/tweakeroo/world/FakeWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,6 @@ public Entity getEntityById(int var1)
return null;
}

@Override
public Collection<EnderDragonPart> getEnderDragonParts()
{
return List.of();
}

@Override
public TickManager getTickManager()
{
Expand Down

0 comments on commit 95400bd

Please sign in to comment.