Skip to content

Commit

Permalink
UDOC-0 - Fix bug with pressure plates being allowed to be placed anyw…
Browse files Browse the repository at this point in the history
…here
  • Loading branch information
telvarost committed Mar 21, 2024
1 parent 305b339 commit 01c045f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ A StationAPI mod for Minecraft Beta 1.7.3 that adds some quality of life changes

**If you're looking for the Cursed Legacy edition:** https://modrinth.com/mod/final-beta

**If you're looking for skin fixes and inventory fixes:** https://modrinth.com/mod/mojangfix/versions

**If you're looking for vanilla Minecraft block/entity bug fixes:** https://modrinth.com/mod/annoyancefix-stationapi-edition
**This mod is now deprecated in favor of the following two mods:**
* ClientsideEssentials: https://github.com/telvarost/ClientsideEssentials-StationAPI
* GameplayEssentials: https://github.com/telvarost/GameplayEssentials-StationAPI

# Final Beta
* Mod now works on Multiplayer with [GlassConfigAPI](https://modrinth.com/mod/glass-config-api) version 2.0+ used to sync configs!
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=b1.7.3-build.2
loader_version=0.14.24-babric.1

# Mod Properties
mod_version=2.5.1
mod_version=2.5.2
maven_group=com.github.telvarost
archives_base_name=FinalBeta

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public PressurePlateMixin(int i, int j, PressurePlateTrigger arg, Material arg2)
)
public boolean annoyanceFix_canPlaceAt(Level arg, int i, int j, int k) {
if (Config.config.ALLOW_PRESSURE_PLATES_ON_FENCES) {
return true;
return arg.canSuffocate(i, j, k) || (BlockBase.FENCE.id == arg.getTileId(i, j, k));
}
else
{
Expand All @@ -54,7 +54,7 @@ public boolean annoyanceFix_onAdjacentBlockUpdate(Level instance, int i, int j,

if (BlockBase.FENCE.id == blockBelowPressurePlateId)
{
return true;
return instance.canSuffocate(i, j, k) || (BlockBase.FENCE.id == instance.getTileId(i, j, k));
}
else
{
Expand Down

0 comments on commit 01c045f

Please sign in to comment.