build fixes

This commit is contained in:
Tropical
2026-03-22 00:10:15 -05:00
parent ab2efa87e4
commit 330ce54cda
8 changed files with 144 additions and 133 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
#include "../../Minecraft.Client/Player/LocalPlayer.h"
#include "../../Minecraft.Client/Player/ServerPlayer.h"
#include "../../Minecraft.Client/Network/PlayerConnection.h"
#include "../Network/ChatPacket.h"
#include "../Network/Packets/ChatPacket.h"
#include "../Util/SoundTypes.h"
BucketItem::BucketItem(int id, int content) : Item(id) {
+2 -2
View File
@@ -325,12 +325,12 @@ void PotionItem::appendHoverText(std::shared_ptr<ItemInstance> itemInstance,
}
}
bool PotionItem::isFoistd::l(std::shared_ptr<ItemInstance> itemInstance) {
bool PotionItem::isFoil(std::shared_ptr<ItemInstance> itemInstance) {
std::vector<MobEffectInstance*>* mobEffects = getMobEffects(itemInstance);
return mobEffects != NULL && !mobEffects->empty();
}
unsigned int PotionItem::getUseDescriptionIstd::d(
unsigned int PotionItem::getUseDescriptionId(
std::shared_ptr<ItemInstance> instance) {
int brew = instance->getAuxValue();
if (brew == 0)
@@ -306,7 +306,7 @@ void OldChunkStorage::save(LevelChunk* lc, Level* level,
std::vector<TickNextTickData>* ticksInChunk =
level->fetchTicksInChunk(lc, false);
if (ticksInChunk != NULL) {
int64_t levelTime = level->getTime();
int64_t levelTime = level->getGameTime();
ListTag<CompoundTag>* tickTags = new ListTag<CompoundTag>();
for (int i = 0; i < ticksInChunk->size(); i++) {
@@ -405,7 +405,7 @@ void OldChunkStorage::save(LevelChunk* lc, Level* level, CompoundTag* tag) {
std::vector<TickNextTickData>* ticksInChunk =
level->fetchTicksInChunk(lc, false);
if (ticksInChunk != NULL) {
int64_t levelTime = level->getTime();
int64_t levelTime = level->getGameTime();
ListTag<CompoundTag>* tickTags = new ListTag<CompoundTag>();
for (int i = 0; i < ticksInChunk->size(); i++) {
+1 -1
View File
@@ -122,7 +122,7 @@ const ItemInstance* ArmorDyeRecipe::getResultItem() { return NULL; }
const int ArmorDyeRecipe::getGroup() { return ShapedRecipy::eGroupType_Armour; }
// 4J-PB
bool ArmorDyeRecipe::collectRequirements(int iRecipe) { return false; }
bool ArmorDyeRecipe::requiresRecipe(int iRecipe) { return false; }
void ArmorDyeRecipe::collectRequirements(INGREDIENTS_REQUIRED* pIngReq) {
// int iCount=0;
+1 -1
View File
@@ -1,5 +1,5 @@
#include "../Platform/stdafx.h"
#include "net.minecraft.world.item.h"
#include "../Headers/net.minecraft.world.item.h"
#include "../Headers/net.minecraft.world.level.tile.h"
#include "Recipy.h"
#include "Recipes.h"
-6
View File
@@ -76,12 +76,6 @@ Achievement::Achievement(int id, const std::wstring& name, int x, int y,
y(y),
prerequisite(prerequisite) {}
/**
* @brief Returns whether the Achivement is golden
* @return boolean
*/
bool Achievement::isGolden() { return isGoldenVar; }
int Achievement::getAchievementID() {
return id - Achievements::ACHIEVEMENT_OFFSET;
}