MCPcopy Create free account
hub / github.com/cuberite/cuberite / SetLine

Method SetLine

src/BlockEntities/SignEntity.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46void cSignEntity::SetLine(int a_Index, const AString & a_Line)
47{
48 if ((a_Index < 0) || (a_Index >= (int)ARRAYCOUNT(m_Line)))
49 {
50 LOGWARNING("%s: setting a non-existent line %d (value \"%s\"", __FUNCTION__, a_Index, a_Line.c_str());
51 return;
52 }
53 m_Line[a_Index] = a_Line;
54}
55
56
57

Callers 1

LoadSignFromNBTMethod · 0.80

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected