github.dev removing files randomly lmfao

This commit is contained in:
riall
2023-08-05 04:38:53 -04:00
committed by GitHub
parent 7d331e76c7
commit b2bf22e3fb
331 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#include "Item.hpp"
#include "TripodCamera.hpp"
#include "Level.hpp"
#include "Player.hpp"
CameraItem::CameraItem(int id) : Item(id)
{
}
ItemInstance* CameraItem::use(ItemInstance* inst, Level* level, Player* player)
{
#ifndef ORIGINAL_CODE
// prevent players from using this in multiplayer, to prevent a desync of entity IDs
if (level->field_11)
return inst;
#endif
level->addEntity(new TripodCamera(level, player, player->m_pos.x, player->m_pos.y, player->m_pos.z));
return inst;
}